org.apache.qpid.client.protocol
Interface AMQMethodListener

All Known Implementing Classes:
AMQStateManager, BlockingMethodFrameListener, SpecificMethodFrameListener

public interface AMQMethodListener


Method Summary
 void error(java.lang.Exception e)
          Callback when an error has occurred.
 boolean methodReceived(AMQMethodEvent evt)
          Invoked when a method frame has been received
 

Method Detail

methodReceived

boolean methodReceived(AMQMethodEvent evt)
                       throws org.apache.qpid.AMQException
Invoked when a method frame has been received

Parameters:
evt - the event
Returns:
true if the handler has processed the method frame, false otherwise. Note that this does not prohibit the method event being delivered to subsequent listeners but can be used to determine if nobody has dealt with an incoming method frame.
Throws:
org.apache.qpid.AMQException - if an error has occurred. This exception will be delivered to all registered listeners using the error() method (see below) allowing them to perform cleanup if necessary.

error

void error(java.lang.Exception e)
Callback when an error has occurred. Allows listeners to clean up.

Parameters:
e -