LoadBalancingRule Interface

Implements

public interface LoadBalancingRule
extends HasInnerModel<LoadBalancingRuleInner>, ChildResource<LoadBalancer>, HasBackendPort, HasFrontend, HasFloatingIP, HasProtocol<TransportProtocol>, HasFrontendPort

A client-side representation of an HTTP load balancing rule.

Method Summary

Modifier and Type Method and Description
abstract LoadBalancerBackend backend()

Gets the backend associated with the load balancing rule.

abstract List<LoadBalancerBackend> backends()

Gets the list of backends associated with the load balancing rule.

abstract int idleTimeoutInMinutes()
abstract LoadDistribution loadDistribution()
abstract LoadBalancerProbe probe()

Method Details

backend

public abstract LoadBalancerBackend backend()

Gets the backend associated with the load balancing rule.

If there are multiple backends associated with the rule, this API only returns the first backend. Use backends() for the case of multiple backends associated with the rule.

Returns:

the backend associated with the load balancing rule

backends

public abstract List backends()

Gets the list of backends associated with the load balancing rule.

Returns:

the list of backends associated with the load balancing rule

idleTimeoutInMinutes

public abstract int idleTimeoutInMinutes()

Returns:

the number of minutes before an inactive connection is closed

loadDistribution

public abstract LoadDistribution loadDistribution()

Returns:

the method of load distribution

probe

public abstract LoadBalancerProbe probe()

Returns:

the probe associated with the load balancing rule

Applies to