Interface StoreSerializer

  • All Superinterfaces:
    Serializer

    @Deprecated
    public interface StoreSerializer
    extends Serializer
    Deprecated.
    since 1.11 ("Loon")
    Service to serialize Objects into byte array.
    • Method Detail

      • encode

        byte[] encode​(Object obj)
        Deprecated.
        Serializes the specified object into bytes.
        Specified by:
        encode in interface Serializer
        Parameters:
        obj - object to be serialized
        Returns:
        serialized bytes
      • encode

        void encode​(Object obj,
                    ByteBuffer buffer)
        Deprecated.
        Serializes the specified object into bytes.
        Parameters:
        obj - object to be serialized
        buffer - to write serialized bytes
      • encode

        void encode​(Object obj,
                    OutputStream stream)
        Deprecated.
        Serializes the specified object into bytes.
        Parameters:
        obj - object to be serialized
        stream - to write serialized bytes
      • decode

        <T> T decode​(byte[] bytes)
        Deprecated.
        Deserializes the specified bytes into an object.
        Specified by:
        decode in interface Serializer
        Type Parameters:
        T - decoded type
        Parameters:
        bytes - bytes to be deserialized
        Returns:
        deserialized object
      • decode

        <T> T decode​(ByteBuffer buffer)
        Deprecated.
        Deserializes the specified bytes into an object.
        Type Parameters:
        T - decoded type
        Parameters:
        buffer - bytes to be deserialized
        Returns:
        deserialized object
      • decode

        <T> T decode​(InputStream stream)
        Deprecated.
        Deserializes the specified bytes into an object.
        Type Parameters:
        T - decoded type
        Parameters:
        stream - stream containing the bytes to be deserialized
        Returns:
        deserialized object
      • copy

        <T> T copy​(T object)
        Deprecated.
        Returns a copy of the specfied object.
        Specified by:
        copy in interface Serializer
        Type Parameters:
        T - object type
        Parameters:
        object - object to copy
        Returns:
        a copy of the object
      • using

        static StoreSerializer using​(KryoNamespace ns)
        Deprecated.
        Creates a new StoreSerializer instance from a KryoNamespace.
        Parameters:
        ns - kryo namespace
        Returns:
        StoreSerializer instance