|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.msg.SyncSender
public class SyncSender
This is a convenience class for converting asynchronous senders into synchronous ones. Using this evades the need for the application to set-up callbacks.
Constructor Summary | |
---|---|
SyncSender(Sender sender)
Construct a synchronous sender. |
Method Summary | |
---|---|
void |
close()
Close the connection. |
void |
connect()
Open the connection, if not already open. |
void |
send(Message m)
Send a message asynchronously. |
void |
sent(Sender sender,
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 SyncSender(Sender sender)
Method Detail |
---|
public void sent(Sender sender, java.lang.Exception ex, Message m)
sent
in interface SenderListener
public void send(Message m) throws MessageException, ConnectionException
MessageException
ConnectionException
public void close()
public void connect() throws ConnectionException
ConnectionException
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |