Class AeronCluster.Configuration

java.lang.Object
io.aeron.cluster.client.AeronCluster.Configuration
Enclosing class:
AeronCluster

public static final class AeronCluster.Configuration extends Object
Configuration options for cluster client.
  • Field Details

    • PROTOCOL_MAJOR_VERSION

      public static final int PROTOCOL_MAJOR_VERSION
      Major version of the network protocol from client to consensus module. If these don't match then client and consensus module are not compatible.
      See Also:
    • PROTOCOL_MINOR_VERSION

      public static final int PROTOCOL_MINOR_VERSION
      Minor version of the network protocol from client to consensus module. If these don't match then some features may not be available.
      See Also:
    • PROTOCOL_PATCH_VERSION

      public static final int PROTOCOL_PATCH_VERSION
      Patch version of the network protocol from client to consensus module. If these don't match then bug fixes may not have been applied.
      See Also:
    • PROTOCOL_SEMANTIC_VERSION

      public static final int PROTOCOL_SEMANTIC_VERSION
      Combined semantic version for the client to consensus module protocol.
      See Also:
    • MESSAGE_TIMEOUT_PROP_NAME

      public static final String MESSAGE_TIMEOUT_PROP_NAME
      Timeout when waiting on a message to be sent or received.
      See Also:
    • MESSAGE_TIMEOUT_DEFAULT_NS

      public static final long MESSAGE_TIMEOUT_DEFAULT_NS
      Default timeout when waiting on a message to be sent or received.
    • INGRESS_ENDPOINTS_PROP_NAME

      public static final String INGRESS_ENDPOINTS_PROP_NAME
      Property name for the comma separated map of cluster memberId to ingress endpoint for use with unicast. This is the endpoint values which get substituted into the INGRESS_CHANNEL_PROP_NAME when using UDP unicast.

      "0=endpoint,1=endpoint,2=endpoint"

      Each member of the list will be substituted for the endpoint in the INGRESS_CHANNEL_PROP_NAME value.

      See Also:
    • INGRESS_ENDPOINTS_DEFAULT

      public static final String INGRESS_ENDPOINTS_DEFAULT
      Default comma separated list of cluster ingress endpoints.
    • INGRESS_CHANNEL_PROP_NAME

      public static final String INGRESS_CHANNEL_PROP_NAME
      Channel for sending messages to a cluster. Ideally this will be a multicast address otherwise unicast will be required and the INGRESS_ENDPOINTS_PROP_NAME is used to substitute the endpoints from the INGRESS_ENDPOINTS_PROP_NAME list.
      See Also:
    • INGRESS_CHANNEL_DEFAULT

      public static final String INGRESS_CHANNEL_DEFAULT
      Channel for sending messages to a cluster.
    • INGRESS_STREAM_ID_PROP_NAME

      public static final String INGRESS_STREAM_ID_PROP_NAME
      Stream id within a channel for sending messages to a cluster.
      See Also:
    • INGRESS_STREAM_ID_DEFAULT

      public static final int INGRESS_STREAM_ID_DEFAULT
      Default stream id within a channel for sending messages to a cluster.
      See Also:
    • EGRESS_CHANNEL_PROP_NAME

      public static final String EGRESS_CHANNEL_PROP_NAME
      Channel for receiving response messages from a cluster.

      Channel's endpoint can be specified explicitly (i.e. by providing address and port pair) or by using zero as a port number. Here is an example of valid response channels:

      • aeron:udp?endpoint=localhost:9020 - listen on port 9020 on localhost.
      • aeron:udp?endpoint=192.168.10.10:9020 - listen on port 9020 on 192.168.10.10.
      • aeron:udp?endpoint=localhost:0 - in this case the port is unspecified and the OS will assign a free port from the ephemeral port range.
      See Also:
    • EGRESS_CHANNEL_DEFAULT

      public static final String EGRESS_CHANNEL_DEFAULT
      Channel for receiving response messages from a cluster.
    • EGRESS_STREAM_ID_PROP_NAME

      public static final String EGRESS_STREAM_ID_PROP_NAME
      Stream id within a channel for receiving messages from a cluster.
      See Also:
    • EGRESS_STREAM_ID_DEFAULT

      public static final int EGRESS_STREAM_ID_DEFAULT
      Default stream id within a channel for receiving messages from a cluster.
      See Also:
    • CLIENT_NAME_PROP_NAME

      public static final String CLIENT_NAME_PROP_NAME
      System property to name Cluster client. Defaults to empty string.
      Since:
      1.49.0
      See Also:
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details