public class AmqpConnectionHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Constructor and Description |
|---|
AmqpConnectionHandler(AmqpServerConfiguration configuration,
org.wso2.broker.core.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 |
closeAllChannels() |
void |
closeChannel(int channel) |
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 |
SaslServer |
getSaslServer()
Returns the
SaslServer for authenticate client connection |
void |
setSaslServer(SaslServer saslServer)
Set
SaslServer to handler |
channelActive, channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic AmqpConnectionHandler(AmqpServerConfiguration configuration, org.wso2.broker.core.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 closeAllChannels()
public org.wso2.broker.core.Broker getBroker()
Broker for the amq connectionpublic AmqpServerConfiguration getConfiguration()
AmqpServerConfiguration for the amq connectionpublic void setSaslServer(SaslServer saslServer)
SaslServer to handlerpublic SaslServer getSaslServer()
SaslServer for authenticate client connectionCopyright © 2018 WSO2. All rights reserved.