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
FieldsModifier and TypeFieldDescriptionprotected final InetSocketAddressprotected final StackedOutboundQueueNoBarrierprotected final Runnableprotected final ConnectionAdapterImplprotected boolean -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(io.netty.channel.ChannelHandlerContext ctx) voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx) voidchannelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) voidclose()protected voidflush()Perform a single flush operation.voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) protected StackedOutboundQueueNoBarrierMethod has to initialize some child ofAbstractStackedOutboundQueue.protected ObjectmakeMessageListenerWrapper(@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, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
closein interfaceAutoCloseable
-
toString
-
handlerAdded
- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter- Throws:
Exception
-
channelActive
- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelReadComplete
- Specified by:
channelReadCompletein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadCompletein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelWritabilityChanged
- Specified by:
channelWritabilityChangedin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelWritabilityChangedin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelInactive
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin 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.
-