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 Details

  • Method Details

    • getInterfaces

      public List<String> getInterfaces()
      Returns the local interfaces to which to bind the node.
      Returns:
      the local interfaces to which to bind the node
    • setInterfaces

      public MessagingConfig setInterfaces​(List<String> interfaces)
      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

      public Integer getPort()
      Returns the local port to which to bind the node.
      Returns:
      the local port to which to bind the node
    • setPort

      public MessagingConfig setPort​(Integer port)
      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

      public MessagingConfig setConnectionPoolSize​(int connectionPoolSize)
      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

      public MessagingConfig setConnectTimeout​(java.time.Duration connectTimeout)
      Sets the Netty connection timeout.
      Parameters:
      connectTimeout - the Netty connection timeout
      Returns:
      the messaging configuration
    • getTlsConfig

      public TlsConfig getTlsConfig()
      Returns the TLS configuration.
      Returns:
      the TLS configuration
    • setTlsConfig

      public MessagingConfig setTlsConfig​(TlsConfig tlsConfig)
      Sets the TLS configuration.
      Parameters:
      tlsConfig - the TLS configuration
      Returns:
      the messaging configuration