public final class ChannelEvent extends AmqpEvent
Modifier and Type | Class and Description |
---|---|
static class |
ChannelEvent.Kind
The Kind of ChannelEvent
|
static class |
ChannelEvent.MethodName |
Constructor and Description |
---|
ChannelEvent(AmqpChannel channel,
ChannelEvent.Kind kind,
com.kaazing.net.ws.amqp.impl.AmqpBuffer.Arg[] args,
Map<String,Object> headers,
ByteBuffer body) |
ChannelEvent(AmqpChannel channel,
ChannelEvent.Kind kind,
String errorMessage) |
ChannelEvent(AmqpClient client,
ChannelEvent.Kind kind,
String errorMessage) |
Modifier and Type | Method and Description |
---|---|
AmqpProperties |
getAmqpProperties()
Returns AmqpProperties associated with the message.
|
ByteBuffer |
getBody() |
AmqpChannel |
getChannel()
Returns the AMQPChannel associated with the event.
|
ChannelEvent.Kind |
getKind() |
String |
getMessage()
Gets the error message for error events
|
ChannelEvent.MethodName |
getMethodName()
Returns the ChannelEvent.MethodName associated with the event.
|
boolean |
isFlowActive()
Returns For flow events, returns true if flow is active
|
getArgument
public ChannelEvent(AmqpClient client, ChannelEvent.Kind kind, String errorMessage)
public ChannelEvent(AmqpChannel channel, ChannelEvent.Kind kind, String errorMessage)
public ChannelEvent(AmqpChannel channel, ChannelEvent.Kind kind, com.kaazing.net.ws.amqp.impl.AmqpBuffer.Arg[] args, Map<String,Object> headers, ByteBuffer body)
public ChannelEvent.Kind getKind()
public ByteBuffer getBody()
public AmqpProperties getAmqpProperties()
public AmqpChannel getChannel()
public ChannelEvent.MethodName getMethodName()
public String getMessage()
public boolean isFlowActive()
IllegalStateException
- if this event is not a flow eventCopyright © 2014. All Rights Reserved.