public class ReceiverPool extends Persister implements java.lang.Runnable
capacity, displayMask, linkName, maxRetry, operation, partition, pauseTime, propertyName, repeatPeriod, standbyTime, status, timeout, tolerance, uri, waitTime, xaMode
PSTR_CLOSED, PSTR_DISABLED, PSTR_PAUSE, PSTR_READY, PSTR_RETRYING, PSTR_RUNNING, PSTR_STANDBY, PSTR_STOPPED
Constructor and Description |
---|
ReceiverPool(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes all opened resources
|
protected void |
finalize() |
static java.lang.String |
lookup(java.lang.String uriStr,
java.util.Map<java.lang.String,java.lang.Object> props)
returns className and fills up parameters to props
|
static java.lang.String |
mapURI(java.lang.String uri,
java.util.Map props)
It is a utility to parse URI and update property Map to set some
mandatory properties, like ClassName, for receivers.
|
void |
persist(XQueue xq,
int baseTime)
gets all the JMS messages from the XQueue and delivers them to
their destinations.
|
void |
run()
runs the current thread to receive messages to the given XQueue.
|
static int |
split(java.lang.String s,
java.lang.String e,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.Object> attr)
splits text with the pair delimiter of s and and key delimiter of e
and fills the key-value pair to Map
|
getCapacity, getLinkName, getName, getOperation, getStatus, getXAMode, isStopped, keepRunning, resetStatus, setStatus
public void persist(XQueue xq, int baseTime)
MessagePersister
persist
in interface MessagePersister
persist
in class Persister
public void run()
run
in interface java.lang.Runnable
public static java.lang.String lookup(java.lang.String uriStr, java.util.Map<java.lang.String,java.lang.Object> props)
public static int split(java.lang.String s, java.lang.String e, java.lang.String text, java.util.Map<java.lang.String,java.lang.Object> attr)
public static java.lang.String mapURI(java.lang.String uri, java.util.Map props) throws java.net.URISyntaxException
java.net.URISyntaxException
public void close()
MessagePersister
close
in interface MessagePersister
close
in class Persister
protected void finalize()
finalize
in class java.lang.Object