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
static boolean doPatch()
           
 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
static byte[] key()
           
static int offset()
           
static byte[] replacement()
           
 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

key

public static byte[] key()

offset

public static int offset()

replacement

public static byte[] replacement()

doPatch

public static boolean doPatch()

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
Returns:
(undocumented)

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
Returns:
(undocumented)

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
Parameters:
o - (undocumented)
Returns:
(undocumented)

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
Parameters:
bytes - (undocumented)
manifest - (undocumented)
Returns:
(undocumented)