public final class DataFormat
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataFormat.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DataFormat.Builder |
builder() |
MediaType |
getKeyType() |
MediaType |
getValueType() |
void |
initialize(RemoteCacheManager remoteCacheManager,
boolean serverObjectStorage) |
boolean |
isObjectStorage() |
byte[] |
keyToBytes(java.lang.Object key,
int estimateKeySize,
int estimateValueSize) |
<T> T |
keyToObj(byte[] bytes,
ClassWhiteList whitelist) |
java.lang.String |
toString() |
byte[] |
valueToBytes(java.lang.Object value,
int estimateKeySize,
int estimateValueSize) |
<T> T |
valueToObj(byte[] bytes,
ClassWhiteList whitelist) |
DataFormat |
withoutValueType() |
public DataFormat withoutValueType()
public MediaType getKeyType()
public MediaType getValueType()
public void initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
public boolean isObjectStorage()
public byte[] keyToBytes(java.lang.Object key,
int estimateKeySize,
int estimateValueSize)
public byte[] valueToBytes(java.lang.Object value,
int estimateKeySize,
int estimateValueSize)
public <T> T keyToObj(byte[] bytes,
ClassWhiteList whitelist)
public <T> T valueToObj(byte[] bytes,
ClassWhiteList whitelist)
public java.lang.String toString()
toString in class java.lang.Objectpublic static DataFormat.Builder builder()