Interface Deserializable


  • public interface Deserializable
    • Method Detail

      • deserializeObject

        default Object deserializeObject​(ByteBuffer buffer)
        Deserializes an arbitrary resumable object within a byte buffer
        Parameters:
        buffer - the buffer containing the object
        Returns:
        the deserialized object
      • deserializeKey

        default Object deserializeKey​(ByteBuffer keyBuffer)
        Deserializes the key data
        Parameters:
        keyBuffer - the buffer containing the key data
        Returns:
        the deserialized object
      • deserializeValue

        default Object deserializeValue​(ByteBuffer valueBuffer)
        Deserializes the value of resumable data
        Parameters:
        valueBuffer - the buffer containing the value data
        Returns:
        the deserialized object
      • deserialize

        boolean deserialize​(ByteBuffer keyBuffer,
                            ByteBuffer valueBuffer)
        Deserializes resume data (invalid data may be ignored)
        Parameters:
        keyBuffer - the buffer containing the key data
        valueBuffer - the buffer containing the value data
        Returns:
        true if successfully deserialized or false otherwise