net.sf.beep4j
Interface ReplyHandler

All Known Implementing Classes:
NullReplyHandler

public interface ReplyHandler

Callback interface used to notify the application about a reply to a message. Whenever the application sends a message (Channel#sendMessage(Message, ReplyListener)) it specifies a ReplyListener.

Author:
Simon Raess

Method Summary
 void receivedANS(Message message)
          Invoked when an ANS response is received.
 void receivedERR(Message message)
          Invoked when an ERR response is received.
 void receivedNUL()
          Invoked when a NUL response is received.
 void receivedRPY(Message message)
          Invoked when a RPY response is received.
 

Method Detail

receivedANS

void receivedANS(Message message)
Invoked when an ANS response is received. For a one-to-many exchange style this method can be invoked 0 or more times.

Parameters:
message - the received message

receivedNUL

void receivedNUL()
Invoked when a NUL response is received. For a one-to-many exchange style this method marks the end of such an exchange. No further methods must be invoked on the listener after this method has been invoked.


receivedERR

void receivedERR(Message message)
Invoked when an ERR response is received. This type of response is also termed negativ reply.

Parameters:
message - the received message

receivedRPY

void receivedRPY(Message message)
Invoked when a RPY response is received. This type of response is also termed positiv reply.

Parameters:
message - the received message


Copyright © 2007 null. All Rights Reserved.