public class StreamReceiver extends Receiver
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENTERROR |
static int |
CMDFAILED |
static int |
CMDOK |
static int |
CONNREFUSED |
static int |
CONNTIMEOUT |
static int |
DATAERROR |
static int |
ERRORFOUND |
static int |
NOTCONNECTED |
static int |
READFAILED |
static int |
SERVERERROR |
static int |
WRITEFAILED |
capacity, displayMask, linkName, maxRetry, mode, operation, partition, pauseTime, propertyName, propertyValue, repeatPeriod, standbyTime, status, timeout, tolerance, uri, waitTime, xaModeRCVR_CLOSED, RCVR_DISABLED, RCVR_PAUSE, RCVR_READY, RCVR_RETRYING, RCVR_RUNNING, RCVR_STANDBY, RCVR_STOPPED| Constructor and Description |
|---|
StreamReceiver(java.util.Map props) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes all opened resources
|
protected void |
finalize() |
void |
receive(XQueue xq,
int baseTime)
puts all the received JMS messages to the XQueue as the output.
|
int |
send(javax.jms.Message message)
extracts the content from the message and writes it to the
OutputStream of the existing connection and returns 0 on success
or none zero otherwise
|
int |
send(java.lang.String text)
writes the text to the OutputStream of the existing connection
and returns 0 on success or none zero otherwise
|
getCapacity, getLinkName, getName, getOperation, getPartition, getStatus, getXAMode, isStopped, keepRunning, resetStatus, setStatuspublic static final int NOTCONNECTED
public static final int CMDOK
public static final int DATAERROR
public static final int CMDFAILED
public static final int ERRORFOUND
public static final int CLIENTERROR
public static final int SERVERERROR
public static final int READFAILED
public static final int WRITEFAILED
public static final int CONNTIMEOUT
public static final int CONNREFUSED
public void receive(XQueue xq, int baseTime)
MessageReceiverreceive in interface MessageReceiverreceive in class Receiverpublic int send(java.lang.String text)
public int send(javax.jms.Message message)
public void close()
MessageReceiverclose in interface MessageReceiverclose in class Receiverprotected void finalize()
finalize in class java.lang.Object