public class AmqpConnectionHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Constructor and Description |
|---|
AmqpConnectionHandler(Broker broker) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
close() |
void |
closeChannel(int channel) |
void |
createChannel(int channelId) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
AmqpChannel |
getChannel(int channelId)
Returns the
AmqpChannel for the specified channelId. |
channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic AmqpConnectionHandler(Broker broker)
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 channel)
public void close()
Copyright © 2017 WSO2. All rights reserved.