jPOS 1.6.1 API Documentation

org.jpos.q2.qbean
Class SpaceLet

java.lang.Object
  extended by org.jpos.q2.QBeanSupport
      extended by org.jpos.q2.qbean.SpaceLet
All Implemented Interfaces:
Configurable, QBean, QBeanSupportMBean, QPersist, Space

public class SpaceLet
extends QBeanSupport
implements Space


Field Summary
 
Fields inherited from class org.jpos.q2.QBeanSupport
stateString
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
SpaceLet()
           
 
Method Summary
 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 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
 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()
           
 
Methods inherited from class org.jpos.q2.QBeanSupport
destroy, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getServer, getState, getStateAsString, init, isModified, running, setConfiguration, setLogger, setModified, setName, setPersist, setServer, setState, shutdownQ2, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceLet

public SpaceLet()
Method Detail

initService

public void initService()
                 throws ConfigurationException
Throws:
ConfigurationException

startService

public void startService()

stopService

public void stopService()

out

public void out(java.lang.Object key,
                java.lang.Object value)
Description copied from interface: Space
Write a new entry into the Space

Specified by:
out in interface Space
Parameters:
key - Entry's key
value - Object value

out

public void out(java.lang.Object key,
                java.lang.Object value,
                long timeout)
Description copied from interface: Space
Write a new entry into the Space, with an timeout value

Specified by:
out in interface Space
Parameters:
key - Entry's key
value - Object value
timeout - timeout value

push

public void push(java.lang.Object key,
                 java.lang.Object value)
Description copied from interface: Space
Write a new entry at the head of a queue.

Specified by:
push in interface Space
Parameters:
key - Entry's key
value - Object value

push

public void push(java.lang.Object key,
                 java.lang.Object value,
                 long timeout)
Description copied from interface: Space
Write a new entry at the head of the queue with a timeout value

Specified by:
push in interface Space
Parameters:
key - Entry's key
value - Object value
timeout - timeout value

in

public java.lang.Object in(java.lang.Object key)
Description copied from interface: Space
Take an entry from the space, waiting forever until one exists.

Specified by:
in in interface Space
Parameters:
key - Entry's key
Returns:
value

rd

public java.lang.Object rd(java.lang.Object key)
Description copied from interface: Space
Read an entry from the space, waiting forever until one exists.

Specified by:
rd in interface Space
Parameters:
key - Entry's key
Returns:
value

in

public java.lang.Object in(java.lang.Object key,
                           long timeout)
Description copied from interface: Space
Take an entry from the space, waiting a limited amount of time until one exists.

Specified by:
in in interface Space
Parameters:
key - Entry's key
timeout - millis to wait
Returns:
value or null

rd

public java.lang.Object rd(java.lang.Object key,
                           long timeout)
Description copied from interface: Space
Read an entry from the space, waiting a limited amount of time until one exists.

Specified by:
rd in interface Space
Parameters:
key - Entry's key
timeout - millis to wait
Returns:
value or null

inp

public java.lang.Object inp(java.lang.Object key)
Description copied from interface: Space
In probe takes an entry from the space if one exists, return null otherwise.

Specified by:
inp in interface Space
Parameters:
key - Entry's key
Returns:
value or null

rdp

public java.lang.Object rdp(java.lang.Object key)
Description copied from interface: Space
Read probe reads an entry from the space if one exists, return null otherwise.

Specified by:
rdp in interface Space
Parameters:
key - Entry's key
Returns:
value or null

jPOS.org