Class ProtocolChannelInitializer<C extends io.netty.channel.Channel>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<C>
org.opendaylight.openflowjava.protocol.impl.core.ProtocolChannelInitializer<C>
- Type Parameters:
C
- Channel type
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
TcpChannelInitializer
,UdpChannelInitializer
public abstract class ProtocolChannelInitializer<C extends io.netty.channel.Channel>
extends io.netty.channel.ChannelInitializer<C>
Initializer for protocol channels.
- Author:
- michal.polkorab
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the channelOutboundQueueSize.long
void
setChannelOutboundQueueSize
(int channelOutboundQueueSize) Sets the channelOutboundQueueSize.void
setDeserializationFactory
(DeserializationFactory deserializationFactory) void
setSerializationFactory
(SerializationFactory serializationFactory) void
setSwitchConnectionHandler
(SwitchConnectionHandler switchConnectionHandler) Sets the SwitchConnectionHandler.void
setSwitchIdleTimeout
(long switchIdleTimeout) Sets the switch idle timeout.void
setTlsConfiguration
(TlsConfiguration tlsConfiguration) void
setUseBarrier
(boolean useBarrier) boolean
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved, initChannel
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
ProtocolChannelInitializer
public ProtocolChannelInitializer()
-
-
Method Details
-
setSwitchConnectionHandler
Sets the SwitchConnectionHandler.- Parameters:
switchConnectionHandler
- the switchConnectionHandler to set
-
setSwitchIdleTimeout
public void setSwitchIdleTimeout(long switchIdleTimeout) Sets the switch idle timeout.- Parameters:
switchIdleTimeout
- the switchIdleTimeout to set
-
setSerializationFactory
-
setDeserializationFactory
-
setTlsConfiguration
-
getSwitchConnectionHandler
-
getSwitchIdleTimeout
public long getSwitchIdleTimeout() -
getSerializationFactory
-
getDeserializationFactory
-
getTlsConfiguration
-
setUseBarrier
public void setUseBarrier(boolean useBarrier) -
useBarrier
public boolean useBarrier() -
setChannelOutboundQueueSize
public void setChannelOutboundQueueSize(int channelOutboundQueueSize) Sets the channelOutboundQueueSize.- Parameters:
channelOutboundQueueSize
- the channelOutboundQueueSize
-
getChannelOutboundQueueSize
public int getChannelOutboundQueueSize()Returns the channelOutboundQueueSize.- Returns:
- channelOutboundQueueSize
-