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 Deprecated Methods Modifier and Type Method Description static DataFormat.Builder
builder()
org.infinispan.commons.dataconversion.MediaType
getKeyType()
org.infinispan.commons.dataconversion.MediaType
getValueType()
void
initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
Deprecated.Replaced byinitialize(RemoteCacheManager, String, boolean)
.void
initialize(RemoteCacheManager remoteCacheManager, String cacheName, boolean serverObjectStorage)
boolean
isObjectStorage()
byte[]
keyToBytes(Object key)
byte[]
keyToBytes(Object key, int estimateKeySize, int estimateValueSize)
Deprecated.Since 12.0, will be removed in 15.0<T> T
keyToObj(byte[] bytes, ClassAllowList allowList)
String
toString()
byte[]
valueToBytes(Object value)
byte[]
valueToBytes(Object value, int estimateKeySize, int estimateValueSize)
Deprecated.Since 12.0, will be removed in 15.0<T> T
valueToObj(byte[] bytes, ClassAllowList allowList)
DataFormat
withoutValueType()
-
-
-
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()
-
-