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)
MessageReceiver
receive
in interface MessageReceiver
public abstract void close()
MessageReceiver
close
in interface MessageReceiver
protected void resetStatus(int current, int status)
protected boolean keepRunning(XQueue xq)
protected boolean isStopped(XQueue xq)
public java.lang.String getName()
MessageReceiver
getName
in interface MessageReceiver
public java.lang.String getOperation()
MessageReceiver
getOperation
in interface MessageReceiver
public java.lang.String getLinkName()
MessageReceiver
getLinkName
in interface MessageReceiver
public int getXAMode()
MessageReceiver
getXAMode
in interface MessageReceiver
public int getCapacity()
MessageReceiver
getCapacity
in interface MessageReceiver
public int[] getPartition()
MessageReceiver
getPartition
in interface MessageReceiver
public int getStatus()
MessageReceiver
getStatus
in interface MessageReceiver
public void setStatus(int status)
MessageReceiver
setStatus
in interface MessageReceiver