Package io.atomix.cluster.messaging
Class MessagingConfig
java.lang.Object
io.atomix.cluster.messaging.MessagingConfig
- All Implemented Interfaces:
io.atomix.utils.config.Config
public class MessagingConfig extends Object implements io.atomix.utils.config.Config
Messaging configuration.
-
Constructor Summary
Constructors Constructor Description MessagingConfig() -
Method Summary
Modifier and Type Method Description intgetConnectionPoolSize()Returns the connection pool size.java.time.DurationgetConnectTimeout()Returns the Netty connection timeout.List<String>getInterfaces()Returns the local interfaces to which to bind the node.IntegergetPort()Returns the local port to which to bind the node.TlsConfiggetTlsConfig()Returns the TLS configuration.MessagingConfigsetConnectionPoolSize(int connectionPoolSize)Sets the connection pool size.MessagingConfigsetConnectTimeout(java.time.Duration connectTimeout)Sets the Netty connection timeout.MessagingConfigsetInterfaces(List<String> interfaces)Sets the local interfaces to which to bind the node.MessagingConfigsetPort(Integer port)Sets the local port to which to bind the node.MessagingConfigsetTlsConfig(TlsConfig tlsConfig)Sets the TLS configuration.
-
Constructor Details
-
MessagingConfig
public MessagingConfig()
-
-
Method Details
-
getInterfaces
Returns the local interfaces to which to bind the node.- Returns:
- the local interfaces to which to bind the node
-
setInterfaces
Sets the local interfaces to which to bind the node.- Parameters:
interfaces- the local interfaces to which to bind the node- Returns:
- the local cluster configuration
-
getPort
Returns the local port to which to bind the node.- Returns:
- the local port to which to bind the node
-
setPort
Sets the local port to which to bind the node.- Parameters:
port- the local port to which to bind the node- Returns:
- the local cluster configuration
-
getConnectionPoolSize
public int getConnectionPoolSize()Returns the connection pool size.- Returns:
- the connection pool size
-
setConnectionPoolSize
Sets the connection pool size.- Parameters:
connectionPoolSize- the connection pool size- Returns:
- the messaging configuration
-
getConnectTimeout
public java.time.Duration getConnectTimeout()Returns the Netty connection timeout.- Returns:
- the Netty connection timeout
-
setConnectTimeout
Sets the Netty connection timeout.- Parameters:
connectTimeout- the Netty connection timeout- Returns:
- the messaging configuration
-
getTlsConfig
Returns the TLS configuration.- Returns:
- the TLS configuration
-
setTlsConfig
Sets the TLS configuration.- Parameters:
tlsConfig- the TLS configuration- Returns:
- the messaging configuration
-