public static class LoadBalancer.Builder extends BaseLoadBalancer.Builder<Node,LoadBalancer>
algorithm, connectionLogging, connectionThrottle, halfClosed, healthMonitor, name, nodes, port, protocol, sessionPersistence, timeout
Constructor and Description |
---|
LoadBalancer.Builder() |
Modifier and Type | Method and Description |
---|---|
LoadBalancer.Builder |
accessRules(Iterable<AccessRuleWithId> accessRules) |
LoadBalancer.Builder |
algorithm(BaseLoadBalancer.Algorithm algorithm)
Algorithm that defines how traffic should be directed between back-end nodes.
|
LoadBalancer |
build() |
LoadBalancer.Builder |
clusterName(String clusterName) |
LoadBalancer.Builder |
connectionLogging(Boolean connectionLogging)
Current connection logging configuration.
|
LoadBalancer.Builder |
connectionThrottle(ConnectionThrottle connectionThrottle)
Specifies limits on the number of connections per IP address to help mitigate malicious or abusive
traffic to your applications.
|
LoadBalancer.Builder |
contentCaching(boolean contentCaching) |
LoadBalancer.Builder |
created(Date created) |
LoadBalancer.Builder |
from(LoadBalancer in) |
LoadBalancer.Builder |
halfClosed(Boolean halfClosed)
Enable or Disable Half-Closed support for the load balancer.
|
LoadBalancer.Builder |
healthMonitor(HealthMonitor healthMonitor)
The type of health monitor check to perform to ensure that the service is performing properly.
|
LoadBalancer.Builder |
id(int id) |
LoadBalancer.Builder |
metadata(Metadata metadata) |
LoadBalancer.Builder |
name(String name)
Required.
|
LoadBalancer.Builder |
node(Node node) |
LoadBalancer.Builder |
nodeCount(int nodeCount) |
LoadBalancer.Builder |
nodes(Iterable<Node> nodes)
Required.
|
LoadBalancer.Builder |
port(Integer port)
Required if the protocol being used is not in
ReportApi#listProtocols() or the protocol is in
ReportApi#listProtocols() but port=0. |
LoadBalancer.Builder |
protocol(String protocol)
Required.
|
LoadBalancer.Builder |
region(String region) |
LoadBalancer.Builder |
sessionPersistenceType(SessionPersistence sessionPersistenceType)
Specifies whether multiple requests from clients are directed to the same node.
|
LoadBalancer.Builder |
sourceAddresses(SourceAddresses sourceAddresses) |
LoadBalancer.Builder |
sslTermination(SSLTermination sslTermination) |
LoadBalancer.Builder |
status(LoadBalancer.Status status) |
LoadBalancer.Builder |
timeout(Integer timeout)
The timeout value for the load balancer and communications with its nodes.
|
LoadBalancer.Builder |
updated(Date updated) |
LoadBalancer.Builder |
uri(URI uri) |
LoadBalancer.Builder |
virtualIPs(Iterable<VirtualIPWithId> virtualIPs) |
public LoadBalancer.Builder region(String region)
public LoadBalancer.Builder id(int id)
public LoadBalancer.Builder status(LoadBalancer.Status status)
public LoadBalancer.Builder virtualIPs(Iterable<VirtualIPWithId> virtualIPs)
public LoadBalancer.Builder clusterName(String clusterName)
public LoadBalancer.Builder created(Date created)
public LoadBalancer.Builder updated(Date updated)
public LoadBalancer.Builder contentCaching(boolean contentCaching)
public LoadBalancer.Builder nodeCount(int nodeCount)
LoadBalancer.getNodeCount()
public LoadBalancer.Builder sslTermination(SSLTermination sslTermination)
public LoadBalancer.Builder sourceAddresses(SourceAddresses sourceAddresses)
public LoadBalancer.Builder accessRules(Iterable<AccessRuleWithId> accessRules)
public LoadBalancer.Builder metadata(Metadata metadata)
public LoadBalancer.Builder uri(URI uri)
public LoadBalancer build()
build
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder nodes(Iterable<Node> nodes)
nodes
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder node(Node node)
node
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder algorithm(BaseLoadBalancer.Algorithm algorithm)
algorithm
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
BaseLoadBalancer.Algorithm
public LoadBalancer.Builder name(String name)
name
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder port(Integer port)
ReportApi#listProtocols()
or the protocol is in
ReportApi#listProtocols()
but port=0. Port number for the service you are load balancing.port
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder protocol(String protocol)
protocol
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
ReportApi#listProtocols()
public LoadBalancer.Builder timeout(@Nullable Integer timeout)
timeout
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder halfClosed(@Nullable Boolean halfClosed)
halfClosed
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder sessionPersistenceType(@Nullable SessionPersistence sessionPersistenceType)
sessionPersistenceType
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
SessionPersistence
public LoadBalancer.Builder connectionLogging(@Nullable Boolean connectionLogging)
connectionLogging
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
public LoadBalancer.Builder connectionThrottle(@Nullable ConnectionThrottle connectionThrottle)
connectionThrottle
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
ConnectionThrottle
public LoadBalancer.Builder healthMonitor(@Nullable HealthMonitor healthMonitor)
healthMonitor
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
HealthMonitor
public LoadBalancer.Builder from(LoadBalancer in)
from
in class BaseLoadBalancer.Builder<Node,LoadBalancer>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.