Class LBPoolMember.Builder

  • Enclosing class:
    LBPoolMember

    public static final class LBPoolMember.Builder
    extends java.lang.Object
    Builder class for LBPoolMember.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of LBPoolMember.
    • Method Detail

      • setBackupMember

        public LBPoolMember.Builder setBackupMember​(java.lang.Boolean backupMember)
        Backup servers are typically configured with a sorry page indicating to the user that the application is currently unavailable. While the pool is active (a specified minimum number of pool members are active) BACKUP members are skipped during server selection. When the pool is inactive, incoming connections are sent to only the BACKUP member(s).
        Parameters:
        backupMember - New value for the property.
      • setDisplayName

        public LBPoolMember.Builder setDisplayName​(java.lang.String displayName)
        Pool member name.
        Parameters:
        displayName - New value for the property.
      • setIpAddress

        public LBPoolMember.Builder setIpAddress​(java.lang.String ipAddress)
        Pool member IP address. format: ip
        Parameters:
        ipAddress - New value for the property.
      • setMaxConcurrentConnections

        public LBPoolMember.Builder setMaxConcurrentConnections​(java.lang.Long maxConcurrentConnections)
        To ensure members are not overloaded, connections to a member can be capped by the load balancer. When a member reaches this limit, it is skipped during server selection. If it is not specified, it means that connections are unlimited. format: int64
        Parameters:
        maxConcurrentConnections - New value for the property.
      • setPort

        public LBPoolMember.Builder setPort​(java.lang.String port)
        If port is specified, all connections will be sent to this port. Only single port is supported. If unset, the same port the client connected to will be used, it could be overrode by default_pool_member_port setting in virtual server. The port should not specified for port range case. format: port-or-range
        Parameters:
        port - New value for the property.
      • setWeight

        public LBPoolMember.Builder setWeight​(java.lang.Long weight)
        Pool member weight is used for WEIGHTED_ROUND_ROBIN balancing algorithm. The weight value would be ignored in other algorithms. format: int64
        Parameters:
        weight - New value for the property.