Package org.apache.pekko.serialization
Class DisabledJavaSerializer
java.lang.Object
org.apache.pekko.serialization.DisabledJavaSerializer
- All Implemented Interfaces:
Serializable,ByteBufferSerializer,Serializer,scala.Equals,scala.Product
public final class DisabledJavaSerializer
extends Object
implements Serializer, ByteBufferSerializer, scala.Product, Serializable
This Serializer is used when
org.apache.pekko.actor.java-serialization = off- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DisabledJavaSerializerapply(ExtendedActorSystem system) booleancopy(ExtendedActorSystem system) booleanfromBinary(byte[] bytes, scala.Option<Class<?>> clazz) Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.fromBinary(ByteBuffer buf, String manifest) Produces an object from aByteBuffer, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.inthashCode()intCompletely unique value to identify this implementation of Serializer, used to optimize network traffic.static final DisabledJavaSerializer.JavaSerializationExceptionstatic final DisabledJavaSerializer.JavaSerializationExceptionbooleanReturns whether this serializer needs a manifest in the fromBinary methodintproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>system()byte[]Serializes the given object into an Array of Byte.voidtoBinary(Object o, ByteBuffer buf) Serializes the given object into theByteBuffer.toString()static scala.Option<ExtendedActorSystem>Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.serialization.Serializer
fromBinary, fromBinary
-
Constructor Details
-
DisabledJavaSerializer
-
-
Method Details
-
IllegalSerialization
-
IllegalDeserialization
-
apply
-
unapply
-
system
-
identifier
public int identifier()Description copied from interface:SerializerCompletely 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:
identifierin interfaceSerializer
-
includeManifest
public boolean includeManifest()Description copied from interface:SerializerReturns whether this serializer needs a manifest in the fromBinary method- Specified by:
includeManifestin interfaceSerializer
-
toBinary
Description copied from interface:ByteBufferSerializerSerializes the given object into theByteBuffer.- Specified by:
toBinaryin interfaceByteBufferSerializer
-
fromBinary
public Object fromBinary(byte[] bytes, scala.Option<Class<?>> clazz) throws NotSerializableException Description copied from interface:SerializerProduces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.- Specified by:
fromBinaryin interfaceSerializer- Throws:
NotSerializableException
-
fromBinary
Description copied from interface:ByteBufferSerializerProduces an object from aByteBuffer, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.- Specified by:
fromBinaryin interfaceByteBufferSerializer- Throws:
NotSerializableException
-
toBinary
Description copied from interface:SerializerSerializes 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:
toBinaryin interfaceSerializer
-
copy
-
copy$default$1
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-