Class SpaceLet
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.qbean.SpaceLet
- All Implemented Interfaces:
AutoCloseable, Configurable, QBean, QBeanSupportMBean, QPersist, Space
-
Field Summary
Fields inherited from class QBeanSupport
cfg, log, scheduledThreadPoolExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanTake an entry from the space, waiting forever until one exists.Take an entry from the space, waiting a limited amount of time until one exists.voidIn probe takes an entry from the space if one exists, return null otherwise.voidNrd (not read) waits forever until Key is not present in space.
Resolution for expiring entries is implementation dependant, but a minimum one-second is suggested.Nrd (not read) waits up to timeout until Key is not present in space.
Resolution for expiring entries is implementation dependant, but a minimum one-second is suggested.voidWrite a new entry into the SpacevoidWrite a new entry into the Space, with an timeout valuevoidWrite a new entry at the head of a queue.voidWrite a new entry at the head of the queue with a timeout valuevoidWrite a single entry at the head of the queue discarding the other entriesvoidWrite a single entry at the head of the queue discarding the other entries, with timeout.Read an entry from the space, waiting forever until one exists.Read an entry from the space, waiting a limited amount of time until one exists.Read probe reads an entry from the space if one exists, return null otherwise.voidvoidMethods inherited from class QBeanSupport
addAttr, close, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stop
-
Constructor Details
-
SpaceLet
public SpaceLet()
-
-
Method Details
-
initService
- Overrides:
initServicein classQBeanSupport- Throws:
ConfigurationException
-
startService
- Overrides:
startServicein classQBeanSupport
-
stopService
- Overrides:
stopServicein classQBeanSupport
-
out
-
out
-
push
-
push
-
put
-
put
Description copied from interface:SpaceWrite a single entry at the head of the queue discarding the other entries, with timeout. -
in
-
rd
-
in
-
rd
-
inp
-
rdp
-
existAny
-
existAny
-
nrd
-
nrd
Description copied from interface:SpaceNrd (not read) waits up to timeout until Key is not present in space.
Resolution for expiring entries is implementation dependant, but a minimum one-second is suggested.
-