public interface Receiver
Modifier and Type | Method and Description |
---|---|
void |
shutdown()
Shut down this receiver.
|
Message |
waitForMessage()
Block until a message is available, or another thread has
called
shutdown() . |
Message waitForMessage() throws CommunicationException
shutdown()
. Typically called from a message
dispatch loop.
Multiple threads can call this method, but only one thread will receive a given message.
null
if shut down.CommunicationException
- If an IO exception occurs
reading the message.void shutdown()
Copyright © 2000-2014. All Rights Reserved.