Class IndexedKeyFormatMapper
- java.lang.Object
-
- org.wildfly.clustering.infinispan.persistence.IndexedKeyFormatMapper
-
- All Implemented Interfaces:
org.infinispan.persistence.keymappers.Key2StringMapper,org.infinispan.persistence.keymappers.TwoWayKey2StringMapper
- Direct Known Subclasses:
DynamicKeyFormatMapper
public class IndexedKeyFormatMapper extends Object implements org.infinispan.persistence.keymappers.TwoWayKey2StringMapper
TwoWayKey2StringMapperimplementation that maps multipleFormatterinstances. Key is mapped to an padded hexadecimal index + the formatted key.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description IndexedKeyFormatMapper(List<? extends org.wildfly.clustering.marshalling.spi.Formatter<?>> keyFormats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetKeyMapping(String value)StringgetStringMapping(Object key)booleanisSupportedType(Class<?> keyType)
-
-
-
Constructor Detail
-
IndexedKeyFormatMapper
public IndexedKeyFormatMapper(List<? extends org.wildfly.clustering.marshalling.spi.Formatter<?>> keyFormats)
-
-
Method Detail
-
isSupportedType
public boolean isSupportedType(Class<?> keyType)
- Specified by:
isSupportedTypein interfaceorg.infinispan.persistence.keymappers.Key2StringMapper
-
getStringMapping
public String getStringMapping(Object key)
- Specified by:
getStringMappingin interfaceorg.infinispan.persistence.keymappers.Key2StringMapper
-
-