public enum SessionDrainingStrategyEnum extends Enum<SessionDrainingStrategyEnum> implements SessionDrainingStrategy
Enum Constant and Description |
---|
ALWAYS
Always drain sessions
|
DEFAULT
Drain sessions only if the target context is non-distributable, i.e.
|
NEVER
Never drain sessions
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled(Context context)
Indicates whether or not to drain sessions prior to stopping the specified context.
|
static SessionDrainingStrategyEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionDrainingStrategyEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionDrainingStrategyEnum DEFAULT
public static final SessionDrainingStrategyEnum ALWAYS
public static final SessionDrainingStrategyEnum NEVER
public static SessionDrainingStrategyEnum[] values()
for (SessionDrainingStrategyEnum c : SessionDrainingStrategyEnum.values()) System.out.println(c);
public static SessionDrainingStrategyEnum 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 boolean isEnabled(Context context)
SessionDrainingStrategy
isEnabled
in interface SessionDrainingStrategy
context
- a web application contextSessionDrainingStrategy.isEnabled(org.jboss.modcluster.container.Context)
Copyright © 2023 JBoss by Red Hat. All rights reserved.