public class AMQMethodEvent<M extends AMQMethodBody> extends Object
Supplies the:
As the event contains the context in which it occurred, event listeners do not need to be statefull.
to listeners. Events are often handled by AMQMethodListener
s.
Constructor and Description |
---|
AMQMethodEvent(int channelId,
M method)
Creates a method event to encasulate a method call and channel.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannelId()
Gets the channel handle for the method call.
|
M |
getMethod()
Gets the method call.
|
String |
toString()
Prints the method call as a string, mainly for debugging purposes.
|
public AMQMethodEvent(int channelId, M method)
channelId
- The channel on which the method call occurred.method
- The method call.public M getMethod()
public int getChannelId()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.