Class SnapshotSerializer
java.lang.Object
org.apache.pekko.persistence.serialization.SnapshotSerializer
- All Implemented Interfaces:
BaseSerializer,Serializer
Snapshot serializer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromBinary(byte[] bytes, scala.Option<Class<?>> manifest) Deserializes aSnapshot.intGlobally unique serialization identifier configured in thereference.conf.booleanReturns whether this serializer needs a manifest in the fromBinary methodprotected voidGlobally unique serialization identifier configured in thereference.conf.system()Actor system which is required by most serializer implementations.byte[]Serializes aSnapshot.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.serialization.BaseSerializer
identifierFromConfig, SerializationIdentifiersMethods inherited from interface org.apache.pekko.serialization.Serializer
fromBinary, fromBinary
-
Constructor Details
-
SnapshotSerializer
-
-
Method Details
-
fromBinary
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
pekko.serialization.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
pekko.serialization.Serializer.identifier.- Specified by:
org$apache$pekko$serialization$BaseSerializer$_setter_$identifier_$eqin interfaceBaseSerializer
-
system
Description copied from interface:BaseSerializerActor system which is required by most serializer implementations.- Specified by:
systemin interfaceBaseSerializer
-
toBinary
Serializes aSnapshot. Delegates serialization of snapshotdatato a matchingorg.apache.pekko.serialization.Serializer.- Specified by:
toBinaryin interfaceSerializer
-