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
  • Method Details

    • withoutValueType

      public DataFormat withoutValueType()
    • getKeyType

      public MediaType getKeyType()
    • getValueType

      public MediaType getValueType()
    • initialize

      @Deprecated(forRemoval=true, since="12.0") public void initialize(RemoteCacheManager remoteCacheManager, boolean serverObjectStorage)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • initialize

      public void initialize(RemoteCacheManager remoteCacheManager, String cacheName, boolean serverObjectStorage)
    • isObjectStorage

      public boolean isObjectStorage()
    • keyToBytes

      @Deprecated(forRemoval=true, since="12.0") public byte[] keyToBytes(Object key, int estimateKeySize, int estimateValueSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 12.0, will be removed in 15.0
    • keyToBytes

      public byte[] keyToBytes(Object key)
    • valueToBytes

      @Deprecated(forRemoval=true, since="12.0") public byte[] valueToBytes(Object value, int estimateKeySize, int estimateValueSize)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
    • server

      public MediaTypeMarshaller server()
    • client

      public MediaTypeMarshaller client()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static DataFormat.Builder builder()