Class CacheKey<I>

java.lang.Object
org.wildfly.clustering.cache.infinispan.CacheKey<I>
Type Parameters:
I - the identifier type of this cache key.
All Implemented Interfaces:
Key<I>
Direct Known Subclasses:
SessionAccessMetaDataKey, SessionAttributesKey, SessionAttributesKey, SessionCreationMetaDataKey, SessionMetaDataKey, UserContextKey, UserContextKey, UserSessionsKey, UserSessionsKey

public class CacheKey<I> extends Object implements Key<I>
A base cache key implementation.
Author:
Paul Ferraro
  • Constructor Details

    • CacheKey

      public CacheKey(I id)
  • Method Details

    • getId

      public I getId()
      Description copied from interface: Key
      Returns the unique identifier of this key.
      Specified by:
      getId in interface Key<I>
      Returns:
      the unique identifier of this key
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object