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
-
-
Field Summary
Fields Modifier and Type Field Description protected InetSocketAddressaddressprotected OcurrentQueueprotected RunnableflushRunnableprotected ConnectionAdapterImplparentprotected booleanshuttingDown
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(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 StackedOutboundQueueNoBarrierinitializeStackedOutboudnqueue()Method 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.StringtoString()-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelRegistered, channelUnregistered, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
parent
protected final ConnectionAdapterImpl parent
-
address
protected final InetSocketAddress address
-
currentQueue
protected final O extends org.opendaylight.openflowjava.protocol.impl.core.connection.AbstractStackedOutboundQueue currentQueue
-
shuttingDown
protected boolean shuttingDown
-
flushRunnable
protected final Runnable flushRunnable
-
-
Method Detail
-
initializeStackedOutboudnqueue
protected StackedOutboundQueueNoBarrier initializeStackedOutboudnqueue()
Method has to initialize some child ofAbstractStackedOutboundQueue.- Returns:
- correct implementation of StacketOutboundqueue
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
handlerAdded
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter- Throws:
Exception
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelReadCompletein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadCompletein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelWritabilityChanged
public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelWritabilityChangedin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelWritabilityChangedin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
makeMessageListenerWrapper
protected Object makeMessageListenerWrapper(@NonNull OfHeader msg)
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.
-
-