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
ConstructorsConstructorDescriptionCreates formatter-based key-string mapper.FormatterKeyMapper(List<? extends org.wildfly.clustering.marshalling.Formatter<?>> formatters) Creates key-string mapper using the specified formatters. -
Method Summary
Modifier and TypeMethodDescriptiongetKeyMapping(String value) getStringMapping(Object key) booleanisSupportedType(Class<?> keyType)
-
Constructor Details
-
FormatterKeyMapper
public FormatterKeyMapper()Creates formatter-based key-string mapper. -
FormatterKeyMapper
public FormatterKeyMapper(List<? extends org.wildfly.clustering.marshalling.Formatter<?>> formatters) Creates key-string mapper using the specified formatters.- Parameters:
formatters- a list of formatters
-
-
Method Details
-
isSupportedType
- Specified by:
isSupportedTypein interfaceorg.infinispan.persistence.keymappers.Key2StringMapper
-
getStringMapping
-
getKeyMapping
-