Class SerializingTranscoder

    • Constructor Detail

      • SerializingTranscoder

        public SerializingTranscoder()
        Get a serializing transcoder with the default max data size.
      • SerializingTranscoder

        public SerializingTranscoder​(int max)
        Get a serializing transcoder that specifies the max data size.
    • Method Detail

      • decode

        public java.lang.Object decode​(CachedData d)
        Description copied from interface: Transcoder
        Decode the cached object into the object it represents.
        Specified by:
        decode in interface Transcoder<java.lang.Object>
        Parameters:
        d - the data
        Returns:
        the return value
      • encode

        public CachedData encode​(java.lang.Object o)
        Description copied from interface: Transcoder
        Encode the given object for storage.
        Specified by:
        encode in interface Transcoder<java.lang.Object>
        Parameters:
        o - the object
        Returns:
        the CachedData representing what should be sent