public class AmqpConnectionHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Constructor and Description |
|---|
AmqpConnectionHandler(AmqpServerConfiguration configuration,
org.wso2.broker.core.Broker broker,
AmqpMetricManager metricManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
closeAllChannels() |
void |
closeChannel(int channelId) |
void |
createChannel(int channelId) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
org.wso2.broker.core.Broker |
getBroker()
Returns the
Broker for the amq connection |
AmqpChannel |
getChannel(int channelId)
Returns the
AmqpChannel for the specified channelId. |
AmqpServerConfiguration |
getConfiguration()
Returns the @
AmqpServerConfiguration for the amq connection |
channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic AmqpConnectionHandler(AmqpServerConfiguration configuration, org.wso2.broker.core.Broker broker, AmqpMetricManager metricManager)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in interface io.netty.channel.ChannelInboundHandlerchannelRegistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic void createChannel(int channelId)
throws ConnectionException
ConnectionExceptionpublic AmqpChannel getChannel(int channelId)
AmqpChannel for the specified channelId.channelId - channel idpublic void closeChannel(int channelId)
public void closeAllChannels()
public org.wso2.broker.core.Broker getBroker()
Broker for the amq connectionpublic AmqpServerConfiguration getConfiguration()
AmqpServerConfiguration for the amq connectionCopyright © 2018 WSO2. All rights reserved.