你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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()

Gets the number of minutes before an inactive connection is closed.

abstract LoadDistribution loadDistribution()

Gets the method of load distribution.

abstract LoadBalancerProbe probe()

Gets the probe associated with the load balancing rule.

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<LoadBalancerBackend> 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()

Gets the number of minutes before an inactive connection is closed.

Returns:

the number of minutes before an inactive connection is closed

loadDistribution

public abstract LoadDistribution loadDistribution()

Gets the method of load distribution.

Returns:

the method of load distribution

probe

public abstract LoadBalancerProbe probe()

Gets the probe associated with the load balancing rule.

Returns:

the probe associated with the load balancing rule

Applies to