Class KeyFormatter<I, K extends Key<I>>

java.lang.Object
org.wildfly.clustering.marshalling.Formatter.Provided<K>
org.wildfly.clustering.cache.KeyFormatter<I,K>
Type Parameters:
I - the key identifier type
K - the key type
All Implemented Interfaces:
Formatter<K>
Direct Known Subclasses:
SessionKeyFormatter

public class KeyFormatter<I, K extends Key<I>> extends Formatter.Provided<K>
A formatter of a cache key.
Author:
Paul Ferraro
  • Constructor Details

    • KeyFormatter

      public KeyFormatter(Class<K> keyClass, Formatter<I> formatter, Function<I,K> factory)
      Creates a cache key formatter for the specified key class.
      Parameters:
      keyClass - a cache key class
      formatter - the formatter for the cache key identifier
      factory - a cache key factory