|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AMQMethodListener
AMQMethodListener is a listener that receives notifications of AMQP methods. The methods are packaged as events in
AMQMethodEvent
.
Responsibilities | |
---|---|
Accept notification of AMQP method events. | AMQMethodEvent
|
Accept notification of errors on the event context. |
Method Summary | ||
---|---|---|
void |
error(Exception e)
Notifies the listener of an error on the event context to which it is listening. |
|
|
methodReceived(AMQMethodEvent<B> evt)
Notifies the listener that an AMQP method event has occurred. |
Method Detail |
---|
<B extends AMQMethodBody> boolean methodReceived(AMQMethodEvent<B> evt) throws AMQException
evt
- The AMQP method event (contains the method and channel).
Exception
- if an error has occurred. This exception may be delivered to all registered listeners using
the error() method (see below) allowing them to perform cleanup if necessary.
AMQException
void error(Exception e)
e
- The underlying exception that is the source of the error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |