Class DataFormat


  • public final class DataFormat
    extends Object
    Defines data format for keys and values during Hot Rod client requests.
    Since:
    9.3
    • Method Detail

      • withoutValueType

        public DataFormat withoutValueType()
      • getKeyType

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

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