Class ChannelInitializerFactory
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.core.ChannelInitializerFactory
-
public class ChannelInitializerFactory extends Object
Factory for ChannelInitializer instances.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description ChannelInitializerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpChannelInitializer
createPublishingChannelInitializer()
Creates a TCP publishing channel initializer.UdpChannelInitializer
createUdpChannelInitializer()
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.
-
-
-
Method Detail
-
createPublishingChannelInitializer
public TcpChannelInitializer createPublishingChannelInitializer()
Creates a TCP publishing channel initializer.- Returns:
- PublishingChannelInitializer that initializes new channels
-
createUdpChannelInitializer
public UdpChannelInitializer 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
public void setDeserializationFactory(DeserializationFactory deserializationFactory)
Sets the DeserializationFactory.- Parameters:
deserializationFactory
- the DeserializationFactory
-
setSerializationFactory
public void setSerializationFactory(SerializationFactory serializationFactory)
Sets the SerializationFactory.- Parameters:
serializationFactory
- the SerializationFactory
-
setTlsConfig
public void setTlsConfig(TlsConfiguration tlsConfig)
Sets the TlsConfiguration.- Parameters:
tlsConfig
- the TlsConfiguration
-
setSwitchConnectionHandler
public void setSwitchConnectionHandler(SwitchConnectionHandler switchConnectionHandler)
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
-
-