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()
      • getValueType

        public MediaType getValueType()
      • initialize

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

        public boolean isObjectStorage()
      • keyToBytes

        public byte[] keyToBytes​(Object key,
                                 int estimateKeySize,
                                 int estimateValueSize)
      • valueToBytes

        public byte[] valueToBytes​(Object value,
                                   int estimateKeySize,
                                   int estimateValueSize)
      • keyToObj

        public <T> T keyToObj​(byte[] bytes,
                              ClassWhiteList whitelist)
      • valueToObj

        public <T> T valueToObj​(byte[] bytes,
                                ClassWhiteList whitelist)