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 org.infinispan.commons.dataconversion.MediaType getKeyType()
    • getValueType

      public org.infinispan.commons.dataconversion.MediaType getValueType()
    • getDefaultMarshaller

      public org.infinispan.commons.marshall.Marshaller getDefaultMarshaller()
    • initialize

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

      public void initialize(RemoteCacheManager remoteCacheManager, String cacheName)
    • 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)
    • keyToStream

      public void keyToStream(Object key, OutputStream stream)
    • 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)
    • valueToStream

      public void valueToStream(Object value, OutputStream stream)
    • keyToObj

      public <T> T keyToObj(byte[] bytes, org.infinispan.commons.configuration.ClassAllowList allowList)
    • keyToObject

      public <T> T keyToObject(InputStream inputStream, org.infinispan.commons.configuration.ClassAllowList allowList)
    • valueToObj

      public <T> T valueToObj(byte[] bytes, org.infinispan.commons.configuration.ClassAllowList allowList)
    • valueToObj

      public <T> T valueToObj(InputStream inputStream, org.infinispan.commons.configuration.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()