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:
org.wildfly.clustering.marshalling.Formatter<K>

public class KeyFormatter<I, K extends Key<I>> extends org.wildfly.clustering.marshalling.Formatter.Provided<K>
A formatter of a cache key.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.Formatter

    org.wildfly.clustering.marshalling.Formatter.Identity, org.wildfly.clustering.marshalling.Formatter.Provided<T>
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.marshalling.Formatter

    IDENTITY
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyFormatter(Class<K> keyClass, org.wildfly.clustering.marshalling.Formatter<I> formatter, Function<I,K> factory)
    Creates a cache key formatter for the specified key class.
  • Method Summary

    Methods inherited from class org.wildfly.clustering.marshalling.Formatter.Provided

    format, getType, parse, wrap

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeyFormatter

      public KeyFormatter(Class<K> keyClass, org.wildfly.clustering.marshalling.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