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 |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
void |
enqueue(Envelope env)
Enqueues an envelope to be sent later.
|
int |
getNumQueuedEnvelopes() |
void |
operationComplete(io.netty.channel.ChannelFuture future) |
String |
toString() |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object envelopeToEnqueue) |
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, exceptionCaughthandlerAdded, handlerRemoved, isSharablepublic OutboundConnectionQueue(io.netty.channel.Channel channel)
public void enqueue(Envelope env)
env - The envelope to be sent.public 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 © 2014 The Apache Software Foundation. All rights reserved.