public static enum LoadBalancingMethod.Method extends Enum<LoadBalancingMethod.Method> implements BmcEnum
Load balancing methods are algorithms used to efficiently distribute traffic among origin servers.
- **[IP_HASH](https://docs.cloud.oracle.com/iaas/api/#/en/waas/latest/datatypes/IPHashLoadBalancingMethod):** All the incoming requests from the same client IP address should go to the same content origination server. IP_HASH load balancing method uses origin weights when choosing which origin should the hash be assigned to initially.
- **[ROUND_ROBIN](https://docs.cloud.oracle.com/iaas/api/#/en/waas/latest/datatypes/RoundRobinLoadBalancingMethod):** Forwards requests sequentially to the available origin servers. The first request - to the first origin server, the second request - to the next origin server, and so on. After it sends a request to the last origin server, it starts again with the first origin server. When using weights on origins, Weighted Round Robin assigns more requests to origins with a greater weight. Over a period of time, origins will receive a number of requests in proportion to their weight.
- **[STICKY_COOKIE](https://docs.cloud.oracle.com/iaas/api/#/en/waas/latest/datatypes/StickyCookieLoadBalancingMethod):** Adds a session cookie to the first response from the origin server and identifies the server that sent the response. The client's next request contains the cookie value, and nginx routes the request to the origin server that responded to the first request. STICKY_COOKIE load balancing method falls back to Round Robin for the first request.
Enum Constant and Description |
---|
IpHash |
RoundRobin |
StickyCookie |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static LoadBalancingMethod.Method |
create(String key) |
String |
getValue() |
static LoadBalancingMethod.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadBalancingMethod.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadBalancingMethod.Method IpHash
public static final LoadBalancingMethod.Method RoundRobin
public static final LoadBalancingMethod.Method StickyCookie
public static final LoadBalancingMethod.Method UnknownEnumValue
public static LoadBalancingMethod.Method[] values()
for (LoadBalancingMethod.Method c : LoadBalancingMethod.Method.values()) System.out.println(c);
public static LoadBalancingMethod.Method valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LoadBalancingMethod.Method create(String key)
Copyright © 2016–2024. All rights reserved.