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 classDataFormat.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DataFormat.Builderbuilder()org.infinispan.commons.dataconversion.MediaTypegetKeyType()org.infinispan.commons.dataconversion.MediaTypegetValueType()voidinitialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)Deprecated.Replaced byinitialize(RemoteCacheManager, String, boolean).voidinitialize(RemoteCacheManager remoteCacheManager, String cacheName, boolean serverObjectStorage)booleanisObjectStorage()byte[]keyToBytes(Object key)byte[]keyToBytes(Object key, int estimateKeySize, int estimateValueSize)Deprecated.Since 12.0, will be removed in 15.0<T> TkeyToObj(byte[] bytes, ClassAllowList allowList)StringtoString()byte[]valueToBytes(Object value)byte[]valueToBytes(Object value, int estimateKeySize, int estimateValueSize)Deprecated.Since 12.0, will be removed in 15.0<T> TvalueToObj(byte[] bytes, ClassAllowList allowList)DataFormatwithoutValueType()
-
-
-
Method Detail
-
withoutValueType
public DataFormat withoutValueType()
-
getKeyType
public org.infinispan.commons.dataconversion.MediaType getKeyType()
-
getValueType
public org.infinispan.commons.dataconversion.MediaType getValueType()
-
initialize
@Deprecated public void initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
Deprecated.Replaced byinitialize(RemoteCacheManager, String, boolean).
-
initialize
public void initialize(RemoteCacheManager remoteCacheManager, String cacheName, boolean serverObjectStorage)
-
isObjectStorage
public boolean isObjectStorage()
-
keyToBytes
@Deprecated public byte[] keyToBytes(Object key, int estimateKeySize, int estimateValueSize)
Deprecated.Since 12.0, will be removed in 15.0
-
keyToBytes
public byte[] keyToBytes(Object key)
-
valueToBytes
@Deprecated public byte[] valueToBytes(Object value, int estimateKeySize, int estimateValueSize)
Deprecated.Since 12.0, will be removed in 15.0
-
valueToBytes
public byte[] valueToBytes(Object value)
-
keyToObj
public <T> T keyToObj(byte[] bytes, ClassAllowList allowList)
-
valueToObj
public <T> T valueToObj(byte[] bytes, ClassAllowList allowList)
-
toString
public String toString()
-
builder
public static DataFormat.Builder builder()
-
-