Class FormatterKeyMapper
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.persistence.FormatterKeyMapper
- All Implemented Interfaces:
org.infinispan.persistence.keymappers.Key2StringMapper,org.infinispan.persistence.keymappers.TwoWayKey2StringMapper
public class FormatterKeyMapper
extends Object
implements org.infinispan.persistence.keymappers.TwoWayKey2StringMapper
TwoWayKey2StringMapper implementation that maps multiple Formatter instances.
Key is mapped to an padded hexadecimal index + the formatted key.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionFormatterKeyMapper(List<? extends org.wildfly.clustering.marshalling.Formatter<?>> formatters) -
Method Summary
Modifier and TypeMethodDescriptiongetKeyMapping(String value) getStringMapping(Object key) booleanisSupportedType(Class<?> keyType)
-
Constructor Details
-
FormatterKeyMapper
public FormatterKeyMapper() -
FormatterKeyMapper
public FormatterKeyMapper(List<? extends org.wildfly.clustering.marshalling.Formatter<?>> formatters)
-
-
Method Details
-
isSupportedType
- Specified by:
isSupportedTypein interfaceorg.infinispan.persistence.keymappers.Key2StringMapper
-
getStringMapping
-
getKeyMapping
-