akka.persistence.serialization
Class SnapshotSerializer

java.lang.Object
  extended by akka.persistence.serialization.SnapshotSerializer
All Implemented Interfaces:
Serializer

public class SnapshotSerializer
extends java.lang.Object
implements Serializer

Snapshot serializer.


Constructor Summary
SnapshotSerializer(ExtendedActorSystem system)
           
 
Method Summary
 java.lang.Object fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest)
          Deserializes a Snapshot.
 int identifier()
          Completely unique value to identify this implementation of Serializer, used to optimize network traffic Values from 0 to 16 is reserved for Akka internal usage
 boolean includeManifest()
          Returns whether this serializer needs a manifest in the fromBinary method
 byte[] toBinary(java.lang.Object o)
          Serializes a Snapshot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.serialization.Serializer
fromBinary, fromBinary
 

Constructor Detail

SnapshotSerializer

public SnapshotSerializer(ExtendedActorSystem system)
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 16 is reserved for Akka 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 byte[] toBinary(java.lang.Object o)
Serializes a Snapshot. Delegates serialization of snapshot data to a matching akka.serialization.Serializer.

Specified by:
toBinary in interface Serializer

fromBinary

public java.lang.Object fromBinary(byte[] bytes,
                                   scala.Option<java.lang.Class<?>> manifest)
Deserializes a Snapshot. Delegates deserialization of snapshot data to a matching akka.serialization.Serializer.

Specified by:
fromBinary in interface Serializer