public class OutboundConnectionQueue
extends io.netty.channel.ChannelInboundHandlerAdapter
implements io.netty.channel.ChannelFutureListener
| Constructor and Description |
|---|
OutboundConnectionQueue(io.netty.channel.Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
void |
enqueue(Envelope env)
Enqueues an envelope to be sent later.
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
int |
getNumQueuedEnvelopes() |
void |
operationComplete(io.netty.channel.ChannelFuture future) |
String |
toString() |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object envelopeToEnqueue) |
channelActive, channelRead, channelReadComplete, channelRegistered, channelUnregisteredhandlerAdded, handlerRemoved, isSharablepublic OutboundConnectionQueue(io.netty.channel.Channel channel)
public void enqueue(Envelope env)
env - The envelope to be sent.public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object envelopeToEnqueue)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelWritabilityChanged in interface io.netty.channel.ChannelInboundHandlerchannelWritabilityChanged in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void operationComplete(io.netty.channel.ChannelFuture future)
throws Exception
operationComplete in interface io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>Exceptionpublic int getNumQueuedEnvelopes()
Copyright © 2015 The Apache Software Foundation. All rights reserved.