Class KeySerializer<I, K extends Key<I>>
java.lang.Object
org.wildfly.clustering.marshalling.Serializer.Provided<K>
org.wildfly.clustering.cache.KeySerializer<I,K>
- Type Parameters:
I- the key identifier typeK- the key type
- All Implemented Interfaces:
Serializer<K>
A serializer for a key.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface Serializer
Serializer.Provided<T> -
Constructor Summary
ConstructorsConstructorDescriptionKeySerializer(Serializer<I> serializer, Function<I, K> factory) Creates a serializer for a cache key using the specified identifier factory and factory. -
Method Summary
Methods inherited from class Serializer.Provided
read, size, wrap, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Serializer
toFormatter
-
Constructor Details
-
KeySerializer
Creates a serializer for a cache key using the specified identifier factory and factory.- Parameters:
serializer- the serializer of the identifier of a cache keyfactory- the cache key factory
-