public class SolaceMessageReceiver extends java.lang.Object implements MessageReceiver
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ADVANCE_TIMEOUT_IN_MILLIS |
| Constructor and Description |
|---|
SolaceMessageReceiver(com.solacesystems.jcsmp.FlowReceiver flowReceiver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClosed()
Returns true if the message receiver is closed, false otherwise.
|
com.solacesystems.jcsmp.BytesXMLMessage |
receive()
Receives a message from the broker.
|
void |
start()
Starts the message receiver.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEOFpublic static final int DEFAULT_ADVANCE_TIMEOUT_IN_MILLIS
public SolaceMessageReceiver(com.solacesystems.jcsmp.FlowReceiver flowReceiver)
public void start()
MessageReceiverThis method is called in the UnboundedSolaceReader.start() method.
start in interface MessageReceiverpublic boolean isClosed()
MessageReceiverA message receiver is closed when it is no longer able to receive messages.
isClosed in interface MessageReceiverpublic com.solacesystems.jcsmp.BytesXMLMessage receive()
throws java.io.IOException
MessageReceiverThis method will block until a message is received.
receive in interface MessageReceiverjava.io.IOException