public class OutboundQueueManagerNoBarrier<T extends OutboundQueueHandler>
extends io.netty.channel.ChannelInboundHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected InetSocketAddress |
address |
protected O |
currentQueue |
protected Runnable |
flushRunnable |
protected ConnectionAdapterImpl |
parent |
protected boolean |
shuttingDown |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
void |
close() |
protected void |
flush()
Perform a single flush operation.
|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
protected StackedOutboundQueueNoBarrier |
initializeStackedOutboudnqueue()
Method has to initialize some child of
AbstractStackedOutboundQueue . |
protected Object |
makeMessageListenerWrapper(OfHeader msg)
Wraps outgoing message and includes listener attached to this message
which is send to OFEncoder for serialization.
|
String |
toString() |
channelRegistered, channelUnregistered, exceptionCaught, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
protected final ConnectionAdapterImpl parent
protected final InetSocketAddress address
protected final O extends org.opendaylight.openflowjava.protocol.impl.core.connection.AbstractStackedOutboundQueue currentQueue
protected boolean shuttingDown
protected final Runnable flushRunnable
protected StackedOutboundQueueNoBarrier initializeStackedOutboudnqueue()
AbstractStackedOutboundQueue
.public void close()
close
in interface AutoCloseable
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class io.netty.channel.ChannelHandlerAdapter
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelWritabilityChanged
in interface io.netty.channel.ChannelInboundHandler
channelWritabilityChanged
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected Object makeMessageListenerWrapper(@Nonnull OfHeader msg)
protected void flush()
flushRunnable
.Copyright © 2020 OpenDaylight. All rights reserved.