public final class DataFormat extends 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(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() |
public DataFormat withoutValueType()
public MediaType getKeyType()
public MediaType getValueType()
public void initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
public boolean isObjectStorage()
public byte[] keyToBytes(Object key, int estimateKeySize, int estimateValueSize)
public byte[] valueToBytes(Object value, int estimateKeySize, int estimateValueSize)
public <T> T keyToObj(byte[] bytes, ClassWhiteList whitelist)
public <T> T valueToObj(byte[] bytes, ClassWhiteList whitelist)
public static DataFormat.Builder builder()
Copyright © 2021 JBoss by Red Hat. All rights reserved.