public class MessageSerializer extends java.lang.Object implements BaseSerializer
PersistentRepr
, AtLeastOnceDelivery
and PersistentFSM.StateChangeEvent
messages.Constructor and Description |
---|
MessageSerializer(ExtendedActorSystem system) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identifierFromConfig, SerializationIdentifiers
fromBinary, fromBinary
public MessageSerializer(ExtendedActorSystem system)
public int identifier()
BaseSerializer
reference.conf
.
identifier
in interface BaseSerializer
identifier
in interface Serializer
public ExtendedActorSystem system()
BaseSerializer
system
in interface BaseSerializer
public java.lang.Class<AtomicWrite> AtomicWriteClass()
public java.lang.Class<PersistentRepr> PersistentReprClass()
public java.lang.Class<PersistentImpl> PersistentImplClass()
public java.lang.Class<AtLeastOnceDelivery.AtLeastOnceDeliverySnapshot> AtLeastOnceDeliverySnapshotClass()
public java.lang.Class<PersistentFSM.StateChangeEvent> PersistentStateChangeEventClass()
public java.lang.Class<PersistentFSM.PersistentFSMSnapshot<java.lang.Object>> PersistentFSMSnapshotClass()
public boolean includeManifest()
Serializer
includeManifest
in interface Serializer
public byte[] toBinary(java.lang.Object o)
akka.serialization.Serializer
.toBinary
in interface Serializer
o
- (undocumented)public Message fromBinary(byte[] bytes, scala.Option<java.lang.Class<?>> manifest)
akka.serialization.Serializer
.fromBinary
in interface Serializer
bytes
- (undocumented)manifest
- (undocumented)public MessageFormats.AtLeastOnceDeliverySnapshot.Builder atLeastOnceDeliverySnapshotBuilder(AtLeastOnceDelivery.AtLeastOnceDeliverySnapshot snap)
public MessageFormats.PersistentStateChangeEvent.Builder stateChangeBuilder(PersistentFSM.StateChangeEvent stateChange)
public MessageFormats.PersistentFSMSnapshot.Builder persistentFSMSnapshotBuilder(PersistentFSM.PersistentFSMSnapshot<java.lang.Object> persistentFSMSnapshot)
public AtLeastOnceDelivery.AtLeastOnceDeliverySnapshot atLeastOnceDeliverySnapshot(MessageFormats.AtLeastOnceDeliverySnapshot atLeastOnceDeliverySnapshot)
public PersistentFSM.StateChangeEvent stateChange(MessageFormats.PersistentStateChangeEvent persistentStateChange)
public PersistentFSM.PersistentFSMSnapshot<java.lang.Object> persistentFSMSnapshot(MessageFormats.PersistentFSMSnapshot persistentFSMSnapshot)