Package org.wildfly.clustering.tomcat
Enum SessionPersistenceGranularity
- java.lang.Object
-
- java.lang.Enum<SessionPersistenceGranularity>
-
- org.wildfly.clustering.tomcat.SessionPersistenceGranularity
-
- All Implemented Interfaces:
Serializable,Comparable<SessionPersistenceGranularity>,Supplier<org.wildfly.clustering.web.session.SessionAttributePersistenceStrategy>
public enum SessionPersistenceGranularity extends Enum<SessionPersistenceGranularity> implements Supplier<org.wildfly.clustering.web.session.SessionAttributePersistenceStrategy>
- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.wildfly.clustering.web.session.SessionAttributePersistenceStrategyget()static SessionPersistenceGranularityvalueOf(String name)Returns the enum constant of this type with the specified name.static SessionPersistenceGranularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SESSION
public static final SessionPersistenceGranularity SESSION
-
ATTRIBUTE
public static final SessionPersistenceGranularity ATTRIBUTE
-
-
Method Detail
-
values
public static SessionPersistenceGranularity[] 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 (SessionPersistenceGranularity c : SessionPersistenceGranularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SessionPersistenceGranularity 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
-
-