|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Receiver
A Receiver waits for incoming messages and performs some action if various events occur.
| Method Summary | |
|---|---|
void |
receive(Message incoming,
int comm)
Message is received with communication identifier comm. |
void |
timeout(int comm)
No reply received in MessageServer.TIMEOUT seconds for the
message with communication id comm. |
| Method Detail |
|---|
void receive(Message incoming,
int comm)
throws IOException,
UnknownMessageException
comm.
The Receiver should use this value when sending replies using
MessageServer.reply(int, org.planx.xmlstore.routing.messaging.Message, java.net.InetAddress, int).
IOException - if an I/O error occurs
UnknownMessageException - if the message or comm was
unexpected
void timeout(int comm)
throws IOException,
UnknownMessageException
MessageServer.TIMEOUT seconds for the
message with communication id comm.
IOException - if an I/O error occurs
UnknownMessageException - if the comm was unexpected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||