public class MemcachedTypeConverter extends Object implements TypeConverter<String,Object,String,Object>
Constructor and Description |
---|
MemcachedTypeConverter() |
Modifier and Type | Method and Description |
---|---|
String |
boxKey(String key)
Covert a instance of cached key type into an instance of target key type.
|
Object |
boxValue(Object value)
Covert a instance of cached key type into an instance of target key type.
|
void |
setMarshaller(Marshaller marshaller)
Marshaller to be used by the type converter to marshall/unmarshall contents.
|
boolean |
supportsInvocation(Flag flag)
Indicates whether this type converter supports a particular type of
operation.
|
String |
unboxKey(String key)
Convert back an instance of the target key type into an instance of
the cached key type.
|
byte[] |
unboxValue(Object target)
Convert back an instance of the target value type into an instance of
the cached value type.
|
public String boxKey(String key)
TypeConverter
public Object boxValue(Object value)
TypeConverter
public String unboxKey(String key)
TypeConverter
public byte[] unboxValue(Object target)
TypeConverter
unboxValue
in interface TypeConverter<String,Object,String,Object>
target
- target value type instance to convert backpublic void setMarshaller(Marshaller marshaller)
TypeConverter
setMarshaller
in interface TypeConverter<String,Object,String,Object>
marshaller
- marshaller instance to be used.public boolean supportsInvocation(Flag flag)
TypeConverter
supportsInvocation
in interface TypeConverter<String,Object,String,Object>
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.