Package org.infinispan.client.hotrod
Class DataFormat
- java.lang.Object
-
- org.infinispan.client.hotrod.DataFormat
-
public final class DataFormat extends Object
Defines data format for keys and values during Hot Rod client requests.- Since:
- 9.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataFormat.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataFormat.Builder
builder()
MediaType
getKeyType()
MediaType
getValueType()
void
initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
boolean
isObjectStorage()
byte[]
keyToBytes(Object key, int estimateKeySize, int estimateValueSize)
<T> T
keyToObj(byte[] bytes, ClassWhiteList whitelist)
String
toString()
byte[]
valueToBytes(Object value, int estimateKeySize, int estimateValueSize)
<T> T
valueToObj(byte[] bytes, ClassWhiteList whitelist)
DataFormat
withoutValueType()
-
-
-
Method Detail
-
withoutValueType
public DataFormat withoutValueType()
-
getKeyType
public MediaType getKeyType()
-
getValueType
public MediaType getValueType()
-
initialize
public void initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
-
isObjectStorage
public boolean isObjectStorage()
-
keyToBytes
public byte[] keyToBytes(Object key, int estimateKeySize, int estimateValueSize)
-
valueToBytes
public byte[] valueToBytes(Object value, int estimateKeySize, int estimateValueSize)
-
keyToObj
public <T> T keyToObj(byte[] bytes, ClassWhiteList whitelist)
-
valueToObj
public <T> T valueToObj(byte[] bytes, ClassWhiteList whitelist)
-
builder
public static DataFormat.Builder builder()
-
-