Enum SessionPersistence
- java.lang.Object
-
- java.lang.Enum<SessionPersistence>
-
- org.jclouds.rackspace.cloudloadbalancers.v1.domain.SessionPersistence
-
- All Implemented Interfaces:
Serializable
,Comparable<SessionPersistence>
public enum SessionPersistence extends Enum<SessionPersistence>
Session persistence is a feature of the load balancing service that forces multiple requests from clients to be directed to the same node. This is common with many web applications that do not inherently share application state between back-end servers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HTTP_COOKIE
A session persistence mechanism that inserts an HTTP cookie and is used to determine the destination back-end node.SOURCE_IP
A session persistence mechanism that will keep track of the source IP address that is mapped and is able to determine the destination back-end node.UNRECOGNIZED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SessionPersistence
fromValue(String sessionPersistence)
static SessionPersistence
valueOf(String name)
Returns the enum constant of this type with the specified name.static SessionPersistence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HTTP_COOKIE
public static final SessionPersistence HTTP_COOKIE
A session persistence mechanism that inserts an HTTP cookie and is used to determine the destination back-end node. This is supported for HTTP load balancing only.
-
SOURCE_IP
public static final SessionPersistence SOURCE_IP
A session persistence mechanism that will keep track of the source IP address that is mapped and is able to determine the destination back-end node. This is supported for HTTPS pass-through and non-HTTP load balancing only.
-
UNRECOGNIZED
public static final SessionPersistence UNRECOGNIZED
-
-
Method Detail
-
values
public static SessionPersistence[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SessionPersistence c : SessionPersistence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SessionPersistence valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
public static SessionPersistence fromValue(String sessionPersistence)
-
-