public class SpaceLet extends QBeanSupport implements Space
cfg, log, scheduledThreadPoolExecutor
Constructor and Description |
---|
SpaceLet() |
Modifier and Type | Method and Description |
---|---|
boolean |
existAny(java.lang.Object[] keys) |
boolean |
existAny(java.lang.Object[] keys,
long timeout) |
java.lang.Object |
in(java.lang.Object key)
Take an entry from the space, waiting forever until one exists.
|
java.lang.Object |
in(java.lang.Object key,
long timeout)
Take an entry from the space, waiting a limited amount of time
until one exists.
|
void |
initService() |
java.lang.Object |
inp(java.lang.Object key)
In probe takes an entry from the space if one exists,
return null otherwise.
|
void |
nrd(java.lang.Object key)
Nrd (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.
|
java.lang.Object |
nrd(java.lang.Object key,
long timeout)
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.
|
void |
out(java.lang.Object key,
java.lang.Object value)
Write a new entry into the Space
|
void |
out(java.lang.Object key,
java.lang.Object value,
long timeout)
Write a new entry into the Space, with an timeout value
|
void |
push(java.lang.Object key,
java.lang.Object value)
Write a new entry at the head of a queue.
|
void |
push(java.lang.Object key,
java.lang.Object value,
long timeout)
Write a new entry at the head of the queue with a timeout value
|
void |
put(java.lang.Object key,
java.lang.Object value)
Write a single entry at the head of the queue discarding the other entries
|
void |
put(java.lang.Object key,
java.lang.Object value,
long timeout)
Write a single entry at the head of the queue discarding the other entries, with timeout.
|
java.lang.Object |
rd(java.lang.Object key)
Read an entry from the space, waiting forever until one exists.
|
java.lang.Object |
rd(java.lang.Object key,
long timeout)
Read an entry from the space, waiting a limited amount of time
until one exists.
|
java.lang.Object |
rdp(java.lang.Object key)
Read probe reads an entry from the space if one exists,
return null otherwise.
|
void |
startService() |
void |
stopService() |
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
public void initService() throws ConfigurationException
initService
in class QBeanSupport
ConfigurationException
public void startService()
startService
in class QBeanSupport
public void stopService()
stopService
in class QBeanSupport
public void out(java.lang.Object key, java.lang.Object value)
Space
public void out(java.lang.Object key, java.lang.Object value, long timeout)
Space
public void push(java.lang.Object key, java.lang.Object value)
Space
public void push(java.lang.Object key, java.lang.Object value, long timeout)
Space
public void put(java.lang.Object key, java.lang.Object value)
Space
public void put(java.lang.Object key, java.lang.Object value, long timeout)
Space
public java.lang.Object in(java.lang.Object key)
Space
public java.lang.Object rd(java.lang.Object key)
Space
public java.lang.Object in(java.lang.Object key, long timeout)
Space
public java.lang.Object rd(java.lang.Object key, long timeout)
Space
public java.lang.Object inp(java.lang.Object key)
Space
public java.lang.Object rdp(java.lang.Object key)
Space
public boolean existAny(java.lang.Object[] keys)
public boolean existAny(java.lang.Object[] keys, long timeout)
public void nrd(java.lang.Object key)
Space
public java.lang.Object nrd(java.lang.Object key, long timeout)
Space