Package org.wildfly.clustering.ee.cache
Class KeySerializer<K extends Key<I>,I>
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.FunctionalSerializer<K,I>
-
- org.wildfly.clustering.ee.cache.KeySerializer<K,I>
-
- All Implemented Interfaces:
Serializer<K>
public class KeySerializer<K extends Key<I>,I> extends FunctionalSerializer<K,I>
Serializer for a key that delegates to the serializer of its identifier.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description KeySerializer(Serializer<I> serializer, Function<I,K> factory)
-
Method Summary
-
Methods inherited from class org.wildfly.clustering.marshalling.spi.FunctionalSerializer
read, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.marshalling.spi.Serializer
size
-
-
-
-
Constructor Detail
-
KeySerializer
public KeySerializer(Serializer<I> serializer, Function<I,K> factory)
-
-