다음을 통해 공유


SessionAffinity Class

public final class SessionAffinity
extends ExpandableStringEnum<SessionAffinity>

Type of the affinity, set this to Cookie to enable session affinity.

Field Summary

Modifier and Type Field and Description
static final SessionAffinity COOKIE

Static value Cookie for SessionAffinity.

static final SessionAffinity NONE

Static value None for SessionAffinity.

Constructor Summary

Constructor Description
SessionAffinity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SessionAffinity value.

Method Summary

Modifier and Type Method and Description
static SessionAffinity fromString(String name)

Creates or finds a SessionAffinity from its string representation.

static Collection<SessionAffinity> values()

Gets known SessionAffinity values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

public static final SessionAffinity COOKIE

Static value Cookie for SessionAffinity.

NONE

public static final SessionAffinity NONE

Static value None for SessionAffinity.

Constructor Details

SessionAffinity

@Deprecated
public SessionAffinity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SessionAffinity value.

Method Details

fromString

public static SessionAffinity fromString(String name)

Creates or finds a SessionAffinity from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SessionAffinity.

values

public static Collection values()

Gets known SessionAffinity values.

Returns:

known SessionAffinity values.

Applies to