Interface StoreSerializer

  • All Superinterfaces:
    Serializer

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

      All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> T copy​(T object)
      Deprecated.
      Returns a copy of the specfied object.
      <T> T decode​(byte[] bytes)
      Deprecated.
      Deserializes the specified bytes into an object.
      <T> T decode​(java.io.InputStream stream)
      Deprecated.
      Deserializes the specified bytes into an object.
      <T> T decode​(java.nio.ByteBuffer buffer)
      Deprecated.
      Deserializes the specified bytes into an object.
      byte[] encode​(java.lang.Object obj)
      Deprecated.
      Serializes the specified object into bytes.
      void encode​(java.lang.Object obj, java.io.OutputStream stream)
      Deprecated.
      Serializes the specified object into bytes.
      void encode​(java.lang.Object obj, java.nio.ByteBuffer buffer)
      Deprecated.
      Serializes the specified object into bytes.
      static StoreSerializer using​(KryoNamespace ns)
      Deprecated.
      Creates a new StoreSerializer instance from a KryoNamespace.
    • Method Detail

      • encode

        byte[] encode​(java.lang.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​(java.lang.Object obj,
                    java.nio.ByteBuffer buffer)
        Deprecated.
        Serializes the specified object into bytes.
        Parameters:
        obj - object to be serialized
        buffer - to write serialized bytes
      • encode

        void encode​(java.lang.Object obj,
                    java.io.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​(java.nio.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​(java.io.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