Class OutboundQueueManagerNoBarrier<T extends OutboundQueueHandler>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.opendaylight.openflowjava.protocol.impl.core.connection.OutboundQueueManagerNoBarrier<T>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,AutoCloseable
public class OutboundQueueManagerNoBarrier<T extends OutboundQueueHandler>
extends io.netty.channel.ChannelInboundHandlerAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprotected final InetSocketAddress
protected final StackedOutboundQueueNoBarrier
protected final Runnable
protected final ConnectionAdapterImpl
protected boolean
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Method has to initialize some child ofAbstractStackedOutboundQueue
.protected Object
makeMessageListenerWrapper
(@NonNull OfHeader msg) Wraps outgoing message and includes listener attached to this message which is send to OFEncoder for serialization.toString()
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelRegistered, channelUnregistered, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Field Details
-
parent
-
address
-
currentQueue
-
shuttingDown
protected boolean shuttingDown -
flushRunnable
-
-
Method Details
-
initializeStackedOutboudnqueue
Method has to initialize some child ofAbstractStackedOutboundQueue
.- Returns:
- correct implementation of StacketOutboundqueue
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
toString
-
handlerAdded
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classio.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
-
channelActive
- Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
channelReadComplete
- Specified by:
channelReadComplete
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelReadComplete
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
channelWritabilityChanged
- Specified by:
channelWritabilityChanged
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelWritabilityChanged
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
channelInactive
- Specified by:
channelInactive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelInactive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
channelRead
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
makeMessageListenerWrapper
Wraps outgoing message and includes listener attached to this message which is send to OFEncoder for serialization. Correct wrapper is selected by communication pipeline. -
flush
protected void flush()Perform a single flush operation. We keep it here so we do not generate syntetic accessors for private fields. Otherwise it could be moved intoflushRunnable
.
-