|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectie.ncl.msg.SyncReceiver
public class SyncReceiver
This is a convenience class for converting asynchronous receivers into synchronous receivers. Using this evades the need for the application to set-up callbacks.
| Constructor Summary | |
|---|---|
SyncReceiver(Receiver receiver)
Construct a blocking receiver. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection. |
void |
connect()
Open the connection, if not already open. |
Message |
getLastMessageReceived()
|
Message |
receive()
Receive a message synchronously. |
boolean |
received(Receiver receiver,
java.lang.Exception ex,
Message m)
Implements the SenderListener API - used internally. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncReceiver(Receiver receiver)
throws ConnectionException
ConnectionException| Method Detail |
|---|
public Message getLastMessageReceived()
public boolean received(Receiver receiver,
java.lang.Exception ex,
Message m)
received in interface ReceiverListenerReceiver,
Receiver.receive(ReceiverListener)
public Message receive()
throws MessageException,
ConnectionException
MessageException
ConnectionExceptionpublic void close()
public void connect()
throws ConnectionException
ConnectionException
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||