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.
  • Enum Constant Details

  • Method Details

    • values

      public static ClientSessionKeyGrouper[] 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

      public static ClientSessionKeyGrouper valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInstance

      public static ClientSessionKeyGrouper getInstance()
    • computeGroup

      public Object computeGroup(EmbeddedClientSessionKey key, Object group)
      Specified by:
      computeGroup in interface org.infinispan.distribution.group.Grouper<EmbeddedClientSessionKey>
    • getKeyType

      public Class<EmbeddedClientSessionKey> getKeyType()
      Specified by:
      getKeyType in interface org.infinispan.distribution.group.Grouper<EmbeddedClientSessionKey>