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

java.lang.Object
org.wildfly.clustering.marshalling.MappedSerializer<K,I>
org.wildfly.clustering.cache.KeySerializer<I,K>
Type Parameters:
I - the identifier type of the cache key
K - the cache key type
All Implemented Interfaces:
org.wildfly.clustering.marshalling.Serializer<K>

public class KeySerializer<I,K extends Key<I>> extends org.wildfly.clustering.marshalling.MappedSerializer<K,I>
Serializer for a key that delegates to the serializer of its identifier.
Author:
Paul Ferraro
  • Constructor Details

    • KeySerializer

      public KeySerializer(org.wildfly.clustering.marshalling.Serializer<I> serializer, Function<I,K> factory)