Class DisabledJavaSerializer

    • Constructor Detail

    • Method Detail

      • identifier

        public int identifier()
        Description copied from interface: Serializer
        Completely unique value to identify this implementation of Serializer, used to optimize network traffic. Values from 0 to 40 are reserved for Pekko internal usage.
        Specified by:
        identifier in interface Serializer
      • includeManifest

        public boolean includeManifest()
        Description copied from interface: Serializer
        Returns whether this serializer needs a manifest in the fromBinary method
        Specified by:
        includeManifest in interface Serializer
      • toBinary

        public void toBinary​(java.lang.Object o,
                             java.nio.ByteBuffer buf)
        Description copied from interface: ByteBufferSerializer
        Serializes the given object into the ByteBuffer.
        Specified by:
        toBinary in interface ByteBufferSerializer
      • fromBinary

        public java.lang.Object fromBinary​(byte[] bytes,
                                           scala.Option<java.lang.Class<?>> clazz)
                                    throws java.io.NotSerializableException
        Description copied from interface: Serializer
        Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
        Specified by:
        fromBinary in interface Serializer
        Throws:
        java.io.NotSerializableException
      • fromBinary

        public java.lang.Object fromBinary​(java.nio.ByteBuffer buf,
                                           java.lang.String manifest)
                                    throws java.io.NotSerializableException
        Description copied from interface: ByteBufferSerializer
        Produces an object from a ByteBuffer, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
        Specified by:
        fromBinary in interface ByteBufferSerializer
        Throws:
        java.io.NotSerializableException
      • toBinary

        public byte[] toBinary​(java.lang.Object o)
        Description copied from interface: Serializer
        Serializes the given object into an Array of Byte.

        Note that the array must not be mutated by the serializer after it has been returned.

        Specified by:
        toBinary in interface Serializer
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object