Enum Class ClientSessionKeyGrouper
java.lang.Object
java.lang.Enum<ClientSessionKeyGrouper>
org.keycloak.spi.infinispan.impl.embedded.ClientSessionKeyGrouper
- All Implemented Interfaces:
Serializable,Comparable<ClientSessionKeyGrouper>,Constable,org.infinispan.distribution.group.Grouper<EmbeddedClientSessionKey>
public enum ClientSessionKeyGrouper
extends Enum<ClientSessionKeyGrouper>
implements org.infinispan.distribution.group.Grouper<EmbeddedClientSessionKey>
A
Grouper implementation that uses the User Session ID to assign the Client Session to the cache segment. It
groups all the Client Sessions belonging to the same User Session in the same node where the User Session lives.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptioncomputeGroup(EmbeddedClientSessionKey key, Object group) static ClientSessionKeyGrouperstatic ClientSessionKeyGrouperReturns the enum constant of this class with the specified name.static ClientSessionKeyGrouper[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
-
computeGroup
- Specified by:
computeGroupin interfaceorg.infinispan.distribution.group.Grouper<EmbeddedClientSessionKey>
-
getKeyType
- Specified by:
getKeyTypein interfaceorg.infinispan.distribution.group.Grouper<EmbeddedClientSessionKey>
-