public class MessageTerminator extends Persister
capacity, 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 |
---|
MessageTerminator(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes all opened resources
|
protected void |
finalize() |
int |
getNumberOfRules() |
java.lang.String |
getRuleName(int i) |
protected java.util.Map<java.lang.String,java.lang.Object> |
initRuleset(long tm,
java.util.Map ph,
long[] ruleInfo)
It initializes a new ruleset with the ruleInfo and returns the rule upon
success.
|
void |
persist(XQueue xq,
int baseTime)
gets all the JMS messages from the XQueue and delivers them to
their destinations.
|
void |
terminate(XQueue in)
It picks up a message from input queue and evaluates its content to
decide what return code to set.
|
getCapacity, getLinkName, getName, getOperation, getStatus, getXAMode, isStopped, keepRunning, resetStatus, setStatus
protected java.util.Map<java.lang.String,java.lang.Object> initRuleset(long tm, java.util.Map ph, long[] ruleInfo)
public void persist(XQueue xq, int baseTime)
MessagePersister
persist
in interface MessagePersister
persist
in class Persister
public void terminate(XQueue in)
public java.lang.String getRuleName(int i)
public int getNumberOfRules()
public void close()
MessagePersister
close
in interface MessagePersister
close
in class Persister
protected void finalize()
finalize
in class java.lang.Object