Package akka.cluster.ddata.protobuf
Class ReplicatorMessageSerializer
- java.lang.Object
- 
- akka.serialization.SerializerWithStringManifest
- 
- akka.cluster.ddata.protobuf.ReplicatorMessageSerializer
 
 
- 
- All Implemented Interfaces:
- SerializationSupport,- BaseSerializer,- Serializer
 
 public class ReplicatorMessageSerializer extends SerializerWithStringManifest implements SerializationSupport, BaseSerializer Protobuf serializer of ReplicatorMessage messages.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classReplicatorMessageSerializer.SmallCache<A,B>A cache that is designed for a small number (<= 32) of entries.
 - 
Constructor SummaryConstructors Constructor Description ReplicatorMessageSerializer(ExtendedActorSystem system)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidakka$serialization$BaseSerializer$_setter_$identifier_$eq(int x$1)Globally unique serialization identifier configured in thereference.conf.java.lang.StringChangedManifest()java.lang.StringDataEnvelopeManifest()java.lang.StringDeltaNackManifest()java.lang.StringDeltaPropagationManifest()java.lang.StringDurableDataEnvelopeManifest()java.lang.ObjectfromBinary(byte[] bytes, java.lang.String manifest)Produces an object from an array of bytes, with an optional type-hint.java.lang.StringGetFailureManifest()java.lang.StringGetManifest()java.lang.StringGetSuccessManifest()java.lang.StringGossipManifest()intidentifier()Completely unique value to identify this implementation of Serializer, used to optimize network traffic.java.lang.Stringmanifest(java.lang.Object obj)Return the manifest (type hint) that will be provided in the fromBinary method.java.lang.StringNotFoundManifest()java.lang.StringReadManifest()java.lang.StringReadResultManifest()java.lang.StringStatusManifest()java.lang.StringSubscribeManifest()ExtendedActorSystemsystem()Actor system which is required by most serializer implementations.byte[]toBinary(java.lang.Object obj)Serializes the given object into an Array of Byte.java.lang.StringUnsubscribeManifest()java.lang.StringWriteAckManifest()java.lang.StringWriteManifest()java.lang.StringWriteNackManifest()- 
Methods inherited from class akka.serialization.SerializerWithStringManifestfromBinary, includeManifest
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface akka.serialization.BaseSerializeridentifierFromConfig, SerializationIdentifiers
 - 
Methods inherited from interface akka.cluster.ddata.protobuf.SerializationSupportaddressFromProto, addressProtocol, addressToProto, BufferSize, compress, decompress, otherMessageFromBinary, otherMessageFromProto, otherMessageToProto, protocol_$eq, resolveActorRef, ser_$eq, serialization, transportInfo_$eq, transportInformation, uniqueAddressFromProto, uniqueAddressToProto, versionVectorFromBinary, versionVectorFromProto, versionVectorToProto
 - 
Methods inherited from interface akka.serialization.SerializerfromBinary, fromBinary, fromBinary, includeManifest
 
- 
 
- 
- 
- 
Constructor Detail- 
ReplicatorMessageSerializerpublic ReplicatorMessageSerializer(ExtendedActorSystem system) 
 
- 
 - 
Method Detail- 
identifierpublic int identifier() Description copied from class:SerializerWithStringManifestCompletely unique value to identify this implementation of Serializer, used to optimize network traffic. Values from 0 to 40 are reserved for Akka internal usage.- Specified by:
- identifierin interface- BaseSerializer
- Specified by:
- identifierin interface- Serializer
- Specified by:
- identifierin class- SerializerWithStringManifest
 
 - 
akka$serialization$BaseSerializer$_setter_$identifier_$eqprotected void akka$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:
- akka$serialization$BaseSerializer$_setter_$identifier_$eqin interface- BaseSerializer
 
 - 
systempublic ExtendedActorSystem system() Description copied from interface:BaseSerializerActor system which is required by most serializer implementations.- Specified by:
- systemin interface- BaseSerializer
- Specified by:
- systemin interface- SerializationSupport
 
 - 
GetManifestpublic java.lang.String GetManifest() 
 - 
GetSuccessManifestpublic java.lang.String GetSuccessManifest() 
 - 
NotFoundManifestpublic java.lang.String NotFoundManifest() 
 - 
GetFailureManifestpublic java.lang.String GetFailureManifest() 
 - 
SubscribeManifestpublic java.lang.String SubscribeManifest() 
 - 
UnsubscribeManifestpublic java.lang.String UnsubscribeManifest() 
 - 
ChangedManifestpublic java.lang.String ChangedManifest() 
 - 
DataEnvelopeManifestpublic java.lang.String DataEnvelopeManifest() 
 - 
WriteManifestpublic java.lang.String WriteManifest() 
 - 
WriteAckManifestpublic java.lang.String WriteAckManifest() 
 - 
ReadManifestpublic java.lang.String ReadManifest() 
 - 
ReadResultManifestpublic java.lang.String ReadResultManifest() 
 - 
StatusManifestpublic java.lang.String StatusManifest() 
 - 
GossipManifestpublic java.lang.String GossipManifest() 
 - 
WriteNackManifestpublic java.lang.String WriteNackManifest() 
 - 
DurableDataEnvelopeManifestpublic java.lang.String DurableDataEnvelopeManifest() 
 - 
DeltaPropagationManifestpublic java.lang.String DeltaPropagationManifest() 
 - 
DeltaNackManifestpublic java.lang.String DeltaNackManifest() 
 - 
manifestpublic java.lang.String manifest(java.lang.Object obj) Description copied from class:SerializerWithStringManifestReturn the manifest (type hint) that will be provided in the fromBinary method. Use""if manifest is not needed.- Specified by:
- manifestin class- SerializerWithStringManifest
 
 - 
toBinarypublic byte[] toBinary(java.lang.Object obj) Description copied from class:SerializerWithStringManifestSerializes the given object into an Array of Byte.Note that the array must not be mutated by the serializer after it has been returned. - Specified by:
- toBinaryin interface- Serializer
- Specified by:
- toBinaryin class- SerializerWithStringManifest
 
 - 
fromBinarypublic java.lang.Object fromBinary(byte[] bytes, java.lang.String manifest)Description copied from class:SerializerWithStringManifestProduces an object from an array of bytes, with an optional type-hint.It's recommended to throw java.io.NotSerializableExceptioninfromBinaryif the manifest is unknown. This makes it possible to introduce new message types and send them to nodes that don't know about them. This is typically needed when performing rolling upgrades, i.e. running a cluster with mixed versions for while.NotSerializableExceptionis treated as a transient problem in the TCP based remoting layer. The problem will be logged and message is dropped. Other exceptions will tear down the TCP connection because it can be an indication of corrupt bytes from the underlying transport.- Specified by:
- fromBinaryin class- SerializerWithStringManifest
 
 
- 
 
-