public interface MessageReceiver
Implementations of this interface are responsible for managing the connection to the broker and for receiving messages from the broker.
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Closes the message receiver. 
 | 
boolean | 
isClosed()
Returns true if the message receiver is closed, false otherwise. 
 | 
default boolean | 
isEOF()
Test clients may return true to signal that all expected messages have been pulled
 and the test may complete. 
 | 
BytesXMLMessage | 
receive()
Receives a message from the broker. 
 | 
void | 
start()
Starts the message receiver. 
 | 
void start()
This method is called in the UnboundedSolaceReader.start() method.
boolean isClosed()
A message receiver is closed when it is no longer able to receive messages.
BytesXMLMessage receive() throws java.io.IOException
This method will block until a message is received.
java.io.IOExceptionvoid close()
default boolean isEOF()