|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.q2.QBeanSupport
org.jpos.q2.qbean.SpaceLet
public class SpaceLet
| Field Summary |
|---|
| Fields inherited from class org.jpos.q2.QBeanSupport |
|---|
cfg, log |
| Fields inherited from interface org.jpos.q2.QBean |
|---|
DESTROYED, FAILED, STARTED, STARTING, stateString, STOPPED, STOPPING |
| Constructor Summary | |
|---|---|
SpaceLet()
|
|
| Method Summary | |
|---|---|
boolean |
existAny(Object[] keys)
|
boolean |
existAny(Object[] keys,
long timeout)
|
Object |
in(Object key)
Take an entry from the space, waiting forever until one exists. |
Object |
in(Object key,
long timeout)
Take an entry from the space, waiting a limited amount of time until one exists. |
void |
initService()
|
Object |
inp(Object key)
In probe takes an entry from the space if one exists, return null otherwise. |
void |
out(Object key,
Object value)
Write a new entry into the Space |
void |
out(Object key,
Object value,
long timeout)
Write a new entry into the Space, with an timeout value |
void |
push(Object key,
Object value)
Write a new entry at the head of a queue. |
void |
push(Object key,
Object value,
long timeout)
Write a new entry at the head of the queue with a timeout value |
void |
put(Object key,
Object value)
Write a single entry at the head of the queue discarding the other entries |
void |
put(Object key,
Object value,
long timeout)
Write a single entry at the head of the queue discarding the other entries, with timeout. |
Object |
rd(Object key)
Read an entry from the space, waiting forever until one exists. |
Object |
rd(Object key,
long timeout)
Read an entry from the space, waiting a limited amount of time until one exists. |
Object |
rdp(Object key)
Read probe reads an entry from the space if one exists, return null otherwise. |
void |
startService()
|
void |
stopService()
|
| Methods inherited from class org.jpos.q2.QBeanSupport |
|---|
addAttr, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, shutdownQ2, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpaceLet()
| Method Detail |
|---|
public void initService()
throws ConfigurationException
initService in class QBeanSupportConfigurationExceptionpublic void startService()
startService in class QBeanSupportpublic void stopService()
stopService in class QBeanSupport
public void out(Object key,
Object value)
Space
out in interface Spacekey - Entry's keyvalue - Object value
public void out(Object key,
Object value,
long timeout)
Space
out in interface Spacekey - Entry's keyvalue - Object valuetimeout - timeout value
public void push(Object key,
Object value)
Space
push in interface Spacekey - Entry's keyvalue - Object value
public void push(Object key,
Object value,
long timeout)
Space
push in interface Spacekey - Entry's keyvalue - Object valuetimeout - timeout value
public void put(Object key,
Object value)
Space
put in interface Spacekey - Entry's keyvalue - Object value
public void put(Object key,
Object value,
long timeout)
Space
put in interface Spacekey - Entry's keyvalue - Object valuetimeout - timeout valuepublic Object in(Object key)
Space
in in interface Spacekey - Entry's key
public Object rd(Object key)
Space
rd in interface Spacekey - Entry's key
public Object in(Object key,
long timeout)
Space
in in interface Spacekey - Entry's keytimeout - millis to wait
public Object rd(Object key,
long timeout)
Space
rd in interface Spacekey - Entry's keytimeout - millis to wait
public Object inp(Object key)
Space
inp in interface Spacekey - Entry's key
public Object rdp(Object key)
Space
rdp in interface Spacekey - Entry's key
public boolean existAny(Object[] keys)
existAny in interface Spacekeys - array of keys to check
public boolean existAny(Object[] keys,
long timeout)
existAny in interface Spacekeys - array of keys to checktimeout - to wait for any of the entries to become available
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||