Class SnapshotSerializer
- java.lang.Object
-
- org.apache.pekko.persistence.serialization.SnapshotSerializer
-
- All Implemented Interfaces:
BaseSerializer,Serializer
public class SnapshotSerializer extends java.lang.Object implements BaseSerializer
Snapshotserializer.
-
-
Constructor Summary
Constructors Constructor Description SnapshotSerializer(ExtendedActorSystem system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest)Deserializes aSnapshot.intidentifier()Globally unique serialization identifier configured in thereference.conf.booleanincludeManifest()Returns whether this serializer needs a manifest in the fromBinary methodprotected voidorg$apache$pekko$serialization$BaseSerializer$_setter_$identifier_$eq(int x$1)Globally unique serialization identifier configured in thereference.conf.ExtendedActorSystemsystem()Actor system which is required by most serializer implementations.byte[]toBinary(java.lang.Object o)Serializes aSnapshot.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.serialization.BaseSerializer
identifierFromConfig, SerializationIdentifiers
-
Methods inherited from interface org.apache.pekko.serialization.Serializer
fromBinary, fromBinary
-
-
-
-
Constructor Detail
-
SnapshotSerializer
public SnapshotSerializer(ExtendedActorSystem system)
-
-
Method Detail
-
fromBinary
public java.lang.Object fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest)Deserializes aSnapshot. Delegates deserialization of snapshotdatato a matchingorg.apache.pekko.serialization.Serializer.- Specified by:
fromBinaryin interfaceSerializer
-
identifier
public int identifier()
Description copied from interface:BaseSerializerGlobally unique serialization identifier configured in thereference.conf.See
Serializer.identifier.- Specified by:
identifierin interfaceBaseSerializer- 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
-
org$apache$pekko$serialization$BaseSerializer$_setter_$identifier_$eq
protected void org$apache$pekko$serialization$BaseSerializer$_setter_$identifier_$eq(int x$1)
Description copied from interface:BaseSerializerGlobally unique serialization identifier configured in thereference.conf.See
Serializer.identifier.- Specified by:
org$apache$pekko$serialization$BaseSerializer$_setter_$identifier_$eqin interfaceBaseSerializer
-
system
public ExtendedActorSystem system()
Description copied from interface:BaseSerializerActor system which is required by most serializer implementations.- Specified by:
systemin interfaceBaseSerializer
-
toBinary
public byte[] toBinary(java.lang.Object o)
Serializes aSnapshot. Delegates serialization of snapshotdatato a matchingorg.apache.pekko.serialization.Serializer.- Specified by:
toBinaryin interfaceSerializer
-
-