Package org.apache.pekko.serialization
Class DisabledJavaSerializer
- java.lang.Object
-
- org.apache.pekko.serialization.DisabledJavaSerializer
-
- All Implemented Interfaces:
java.io.Serializable
,ByteBufferSerializer
,Serializer
,scala.Equals
,scala.Product
public final class DisabledJavaSerializer extends java.lang.Object implements Serializer, ByteBufferSerializer, scala.Product, java.io.Serializable
This Serializer is used whenorg.apache.pekko.actor.java-serialization = off
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DisabledJavaSerializer.JavaSerializationException
-
Constructor Summary
Constructors Constructor Description DisabledJavaSerializer(ExtendedActorSystem system)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisabledJavaSerializer
apply(ExtendedActorSystem system)
boolean
canEqual(java.lang.Object x$1)
DisabledJavaSerializer
copy(ExtendedActorSystem system)
ExtendedActorSystem
copy$default$1()
boolean
equals(java.lang.Object x$1)
java.lang.Object
fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> clazz)
Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.java.lang.Object
fromBinary(java.nio.ByteBuffer buf, java.lang.String manifest)
Produces an object from aByteBuffer
, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.int
hashCode()
int
identifier()
Completely unique value to identify this implementation of Serializer, used to optimize network traffic.static DisabledJavaSerializer.JavaSerializationException
IllegalDeserialization()
static DisabledJavaSerializer.JavaSerializationException
IllegalSerialization()
boolean
includeManifest()
Returns whether this serializer needs a manifest in the fromBinary methodint
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
ExtendedActorSystem
system()
byte[]
toBinary(java.lang.Object o)
Serializes the given object into an Array of Byte.void
toBinary(java.lang.Object o, java.nio.ByteBuffer buf)
Serializes the given object into theByteBuffer
.java.lang.String
toString()
static scala.Option<ExtendedActorSystem>
unapply(DisabledJavaSerializer x$0)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.serialization.Serializer
fromBinary, fromBinary
-
-
-
-
Constructor Detail
-
DisabledJavaSerializer
public DisabledJavaSerializer(ExtendedActorSystem system)
-
-
Method Detail
-
IllegalSerialization
public static final DisabledJavaSerializer.JavaSerializationException IllegalSerialization()
-
IllegalDeserialization
public static final DisabledJavaSerializer.JavaSerializationException IllegalDeserialization()
-
apply
public static DisabledJavaSerializer apply(ExtendedActorSystem system)
-
unapply
public static scala.Option<ExtendedActorSystem> unapply(DisabledJavaSerializer x$0)
-
system
public ExtendedActorSystem system()
-
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 interfaceSerializer
-
includeManifest
public boolean includeManifest()
Description copied from interface:Serializer
Returns whether this serializer needs a manifest in the fromBinary method- Specified by:
includeManifest
in interfaceSerializer
-
toBinary
public void toBinary(java.lang.Object o, java.nio.ByteBuffer buf)
Description copied from interface:ByteBufferSerializer
Serializes the given object into theByteBuffer
.- Specified by:
toBinary
in interfaceByteBufferSerializer
-
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 interfaceSerializer
- 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 aByteBuffer
, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.- Specified by:
fromBinary
in interfaceByteBufferSerializer
- 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 interfaceSerializer
-
copy
public DisabledJavaSerializer copy(ExtendedActorSystem system)
-
copy$default$1
public ExtendedActorSystem copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-