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(FlowReceiver flowReceiver) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the message receiver.
|
BytesXMLMessage |
receive()
Receives a message from the broker.
|
void |
start()
Starts the message receiver.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEOF
public static final int DEFAULT_ADVANCE_TIMEOUT_IN_MILLIS
public SolaceMessageReceiver(FlowReceiver flowReceiver)
public void start()
MessageReceiver
This method is called in the UnboundedSolaceReader.start()
method.
start
in interface MessageReceiver
public BytesXMLMessage receive() throws java.io.IOException
MessageReceiver
This method will block until a message is received.
receive
in interface MessageReceiver
java.io.IOException
public void close()
MessageReceiver
close
in interface MessageReceiver