Class ChannelInitializerFactory
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.core.ChannelInitializerFactory
Factory for ChannelInitializer instances.
- Author:
- michal.polkorab
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a TCP publishing channel initializer.Creates a UDP channel initializer.void
setChannelOutboundQueueSize
(int channelOutboundQueueSize) Sets the channelOutboundQueueSize.void
setDeserializationFactory
(DeserializationFactory deserializationFactory) Sets the DeserializationFactory.void
setSerializationFactory
(SerializationFactory serializationFactory) Sets the SerializationFactory.void
setSwitchConnectionHandler
(SwitchConnectionHandler switchConnectionHandler) Sets the SwitchConnectionHandler.void
setSwitchIdleTimeout
(long timeout) Sets the switch idle timeout.void
setTlsConfig
(TlsConfiguration tlsConfig) Sets the TlsConfiguration.void
setUseBarrier
(boolean useBarrier) Sets whether or not to use a barrier.
-
Constructor Details
-
ChannelInitializerFactory
public ChannelInitializerFactory()
-
-
Method Details
-
createPublishingChannelInitializer
Creates a TCP publishing channel initializer.- Returns:
- PublishingChannelInitializer that initializes new channels
-
createUdpChannelInitializer
Creates a UDP channel initializer.- Returns:
- PublishingChannelInitializer that initializes new channels
-
setSwitchIdleTimeout
public void setSwitchIdleTimeout(long timeout) Sets the switch idle timeout.- Parameters:
timeout
- the timeout
-
setDeserializationFactory
Sets the DeserializationFactory.- Parameters:
deserializationFactory
- the DeserializationFactory
-
setSerializationFactory
Sets the SerializationFactory.- Parameters:
serializationFactory
- the SerializationFactory
-
setTlsConfig
Sets the TlsConfiguration.- Parameters:
tlsConfig
- the TlsConfiguration
-
setSwitchConnectionHandler
Sets the SwitchConnectionHandler.- Parameters:
switchConnectionHandler
- the SwitchConnectionHandler
-
setUseBarrier
public void setUseBarrier(boolean useBarrier) Sets whether or not to use a barrier. -
setChannelOutboundQueueSize
public void setChannelOutboundQueueSize(int channelOutboundQueueSize) Sets the channelOutboundQueueSize.- Parameters:
channelOutboundQueueSize
- the channelOutboundQueueSize
-