Interface ConnectionConfiguration
-
public interface ConnectionConfigurationConfiguration for a switch connection.- Author:
- mirehak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetAddressgetAddress()Returns address to bind.intgetChannelOutboundQueueSize()Returns the queue size.intgetPort()Returns the port to bind.ObjectgetSslContext()Returns the SSL context.longgetSwitchIdleTimeout()Returns the swicth idle timeout.ThreadConfigurationgetThreadConfiguration()Returns the thread configuration.TlsConfigurationgetTlsConfiguration()Returns the TLS configuration.ObjectgetTransferProtocol()Returns the transport protocol to use.booleanisGroupAddModEnabled()Checks if group add mod messages are enabled.booleanuseBarrier()Determines if a barrier shoild be used.
-
-
-
Method Detail
-
getAddress
InetAddress getAddress()
Returns address to bind.- Returns:
- address to bind, if null, all available interfaces will be used
-
getPort
int getPort()
Returns the port to bind.- Returns:
- port to bind
-
getTransferProtocol
Object getTransferProtocol()
Returns the transport protocol to use.- Returns:
- transport protocol to use
-
getTlsConfiguration
TlsConfiguration getTlsConfiguration()
Returns the TLS configuration.- Returns:
- TLS configuration object
-
getSwitchIdleTimeout
long getSwitchIdleTimeout()
Returns the swicth idle timeout.- Returns:
- silence time (in milliseconds) - after this time
SwitchIdleEventmessage is sent upstream
-
getThreadConfiguration
ThreadConfiguration getThreadConfiguration()
Returns the thread configuration.- Returns:
- thread numbers for TcpHandler's eventloopGroups
-
useBarrier
boolean useBarrier()
Determines if a barrier shoild be used.- Returns:
- boolean value for usability of Barrier
-
isGroupAddModEnabled
boolean isGroupAddModEnabled()
Checks if group add mod messages are enabled.- Returns:
- true if group add mod messages are enabled
-
getChannelOutboundQueueSize
int getChannelOutboundQueueSize()
Returns the queue size.- Returns:
- Configurable queue size
-
-