public static enum SessionPersistence.Type extends Enum<SessionPersistence.Type>
Enum Constant and Description |
---|
APP_COOKIE
The load balancing function relies on a cookie established by the back-end application.
|
HTTP_COOKIE
The load balancing function creates a cookie on the first request from a client.
|
SOURCE_IP
All connections that originate from the same source IP address are handled by the same member of the pool.
|
UNRECOGNIZED
Used by jclouds when the service returns an unknown value other than null.
|
Modifier and Type | Method and Description |
---|---|
static SessionPersistence.Type |
fromValue(String name) |
String |
toString() |
static SessionPersistence.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionPersistence.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionPersistence.Type SOURCE_IP
public static final SessionPersistence.Type HTTP_COOKIE
public static final SessionPersistence.Type APP_COOKIE
public static final SessionPersistence.Type UNRECOGNIZED
public static SessionPersistence.Type[] values()
for (SessionPersistence.Type c : SessionPersistence.Type.values()) System.out.println(c);
public static SessionPersistence.Type 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 String toString()
toString
in class Enum<SessionPersistence.Type>
public static SessionPersistence.Type fromValue(String name)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.