public abstract class Receiver extends java.lang.Object implements MessageReceiver
| Modifier and Type | Field and Description |
|---|---|
protected int |
capacity |
protected int |
displayMask |
protected java.lang.String |
linkName |
protected int |
maxRetry |
protected int |
mode |
protected java.lang.String |
operation |
protected int[] |
partition |
protected int |
pauseTime |
protected java.lang.String[] |
propertyName |
protected java.lang.String[] |
propertyValue |
protected int |
repeatPeriod |
protected int |
standbyTime |
protected int |
status |
protected int |
timeout |
protected int |
tolerance |
protected java.lang.String |
uri |
protected long |
waitTime |
protected int |
xaMode |
RCVR_CLOSED, RCVR_DISABLED, RCVR_PAUSE, RCVR_READY, RCVR_RETRYING, RCVR_RUNNING, RCVR_STANDBY, RCVR_STOPPED| Constructor and Description |
|---|
Receiver(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
closes all opened resources
|
int |
getCapacity()
returns the capacity of the OutLink
|
java.lang.String |
getLinkName()
returns the name of the OutLink
|
java.lang.String |
getName()
returns the name of the receiver
|
java.lang.String |
getOperation()
returns the string of the operation
|
int[] |
getPartition()
returns the partiton array of the input XQueue for the reciever
|
int |
getStatus()
returns the status of the receiver
|
int |
getXAMode()
returns the transaction mode of the reciever
|
protected boolean |
isStopped(XQueue xq) |
protected boolean |
keepRunning(XQueue xq) |
abstract void |
receive(XQueue xq,
int baseTime)
puts all the received JMS messages to the XQueue as the output.
|
protected void |
resetStatus(int current,
int status) |
void |
setStatus(int status)
sets the status of the receiver
|
protected java.lang.String uri
protected java.lang.String operation
protected java.lang.String linkName
protected int mode
protected int xaMode
protected int capacity
protected int status
protected int repeatPeriod
protected int maxRetry
protected int tolerance
protected int pauseTime
protected int standbyTime
protected int timeout
protected int displayMask
protected long waitTime
protected java.lang.String[] propertyName
protected java.lang.String[] propertyValue
protected int[] partition
public abstract void receive(XQueue xq, int baseTime)
MessageReceiverreceive in interface MessageReceiverpublic abstract void close()
MessageReceiverclose in interface MessageReceiverprotected void resetStatus(int current,
int status)
protected boolean keepRunning(XQueue xq)
protected boolean isStopped(XQueue xq)
public java.lang.String getName()
MessageReceivergetName in interface MessageReceiverpublic java.lang.String getOperation()
MessageReceivergetOperation in interface MessageReceiverpublic java.lang.String getLinkName()
MessageReceivergetLinkName in interface MessageReceiverpublic int getXAMode()
MessageReceivergetXAMode in interface MessageReceiverpublic int getCapacity()
MessageReceivergetCapacity in interface MessageReceiverpublic int[] getPartition()
MessageReceivergetPartition in interface MessageReceiverpublic int getStatus()
MessageReceivergetStatus in interface MessageReceiverpublic void setStatus(int status)
MessageReceiversetStatus in interface MessageReceiver