ReplicatedDataSerializer

org.apache.pekko.cluster.ddata.protobuf.ReplicatedDataSerializer

Protobuf serializer of ReplicatedData.

Attributes

Source
ReplicatedDataSerializer.scala
Graph
Supertypes
trait Serializer
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def flagFromBinary(bytes: Array[Byte]): Flag

Attributes

Source
ReplicatedDataSerializer.scala
def flagFromProto(flag: Flag): Flag

Attributes

Source
ReplicatedDataSerializer.scala
def flagToProto(flag: Flag): Flag

Attributes

Source
ReplicatedDataSerializer.scala
override def fromBinary(bytes: Array[Byte], manifest: String): AnyRef

Produces an object from an array of bytes, with an optional type-hint.

Produces an object from an array of bytes, with an optional type-hint.

It's recommended to throw java.io.NotSerializableException in fromBinary if 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. NotSerializableException is 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.

Attributes

Definition Classes
Source
ReplicatedDataSerializer.scala
def gcounterFromProto(gcounter: GCounter): GCounter

Attributes

Source
ReplicatedDataSerializer.scala
def gcounterToProto(gcounter: GCounter): GCounter

Attributes

Source
ReplicatedDataSerializer.scala
def gsetFromBinary(bytes: Array[Byte]): GSet[_]

Attributes

Source
ReplicatedDataSerializer.scala
def gsetFromProto(gset: GSet): GSet[Any]

Attributes

Source
ReplicatedDataSerializer.scala
def gsetToProto(gset: GSet[_]): GSet

Attributes

Source
ReplicatedDataSerializer.scala
def lwwRegisterFromProto(lwwRegister: LWWRegister): LWWRegister[Any]

Attributes

Source
ReplicatedDataSerializer.scala
def lwwRegisterToProto(lwwRegister: LWWRegister[_]): LWWRegister

Attributes

Source
ReplicatedDataSerializer.scala
def lwwmapFromBinary(bytes: Array[Byte]): LWWMap[Any, Any]

Attributes

Source
ReplicatedDataSerializer.scala
def lwwmapFromProto(lwwmap: LWWMap): LWWMap[Any, Any]

Attributes

Source
ReplicatedDataSerializer.scala
def lwwmapToProto(lwwmap: LWWMap[_, _]): LWWMap

Attributes

Source
ReplicatedDataSerializer.scala
override def manifest(obj: AnyRef): String

Return the manifest (type hint) that will be provided in the fromBinary method. Use "" if manifest is not needed.

Return the manifest (type hint) that will be provided in the fromBinary method. Use "" if manifest is not needed.

Attributes

Definition Classes
Source
ReplicatedDataSerializer.scala
def mapTypeFromProto[PEntry <: GeneratedMessageV3, A <: GeneratedMessageV3, B <: ReplicatedData](input: List[PEntry], valueCreator: A => B)(implicit eh: ProtoMapEntryReader[PEntry, A]): Map[Any, B]

Attributes

Source
ReplicatedDataSerializer.scala
def multimapFromBinary(bytes: Array[Byte]): ORMultiMap[Any, Any]

Attributes

Source
ReplicatedDataSerializer.scala
def multimapFromProto(multimap: ORMultiMap): ORMultiMap[Any, Any]

Attributes

Source
ReplicatedDataSerializer.scala
def multimapToProto(multimap: ORMultiMap[_, _]): ORMultiMap

Attributes

Source
ReplicatedDataSerializer.scala
def ormapFromProto(ormap: ORMap): ORMap[Any, ReplicatedData]

Attributes

Source
ReplicatedDataSerializer.scala
def ormapToProto(ormap: ORMap[_, _]): ORMap

Attributes

Source
ReplicatedDataSerializer.scala
def orsetFromBinary(bytes: Array[Byte]): ORSet[Any]

Attributes

Source
ReplicatedDataSerializer.scala
def orsetFromProto(orset: ORSet): ORSet[Any]

Attributes

Source
ReplicatedDataSerializer.scala
def orsetToProto(orset: ORSet[_]): ORSet

Attributes

Source
ReplicatedDataSerializer.scala
def pncounterFromProto(pncounter: PNCounter): PNCounter

Attributes

Source
ReplicatedDataSerializer.scala
def pncounterToProto(pncounter: PNCounter): PNCounter

Attributes

Source
ReplicatedDataSerializer.scala
def pncountermapFromProto(pncountermap: PNCounterMap): PNCounterMap[_]

Attributes

Source
ReplicatedDataSerializer.scala
def pncountermapToProto(pncountermap: PNCounterMap[_]): PNCounterMap

Attributes

Source
ReplicatedDataSerializer.scala
def singleKeyEntryFromProto[PEntry <: GeneratedMessageV3, A <: GeneratedMessageV3](entryOption: Option[PEntry])(implicit eh: ProtoMapEntryReader[PEntry, A]): Any

Attributes

Source
ReplicatedDataSerializer.scala
def singleMapEntryFromProto[PEntry <: GeneratedMessageV3, A <: GeneratedMessageV3, B <: ReplicatedData](input: List[PEntry], valueCreator: A => B)(implicit eh: ProtoMapEntryReader[PEntry, A]): Map[Any, B]

Attributes

Source
ReplicatedDataSerializer.scala
def toBinary(obj: AnyRef): Array[Byte]

Serializes the given object into an Array of Byte.

Serializes the given object into an Array of Byte.

Note that the array must not be mutated by the serializer after it has been returned.

Attributes

Source
ReplicatedDataSerializer.scala

Inherited methods

def addressFromProto(address: Address): Address

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def addressToProto(address: Address): Builder

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def decompress(bytes: Array[Byte]): Array[Byte]

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
final def fromBinary(bytes: Array[Byte], clazz: Class[_]): AnyRef

Java API: deserialize with type hint

Java API: deserialize with type hint

Attributes

Inherited from:
Serializer
Source
Serializer.scala
final def fromBinary(bytes: Array[Byte]): AnyRef

Java API: deserialize without type hint

Java API: deserialize without type hint

Attributes

Inherited from:
Serializer
Source
Serializer.scala
final def fromBinary(bytes: Array[Byte], manifest: Option[Class[_]]): AnyRef

Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.

Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.

Attributes

Inherited from:
SerializerWithStringManifest
Source
Serializer.scala
final override def includeManifest: Boolean

Returns whether this serializer needs a manifest in the fromBinary method

Returns whether this serializer needs a manifest in the fromBinary method

Attributes

Definition Classes
Inherited from:
SerializerWithStringManifest
Source
Serializer.scala
def otherMessageFromBinary(bytes: Array[Byte]): AnyRef

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def otherMessageFromProto(other: OtherMessage): AnyRef

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def otherMessageToProto(msg: Any): OtherMessage

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def uniqueAddressFromProto(uniqueAddress: UniqueAddress): UniqueAddress

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def uniqueAddressToProto(uniqueAddress: UniqueAddress): Builder

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def versionVectorFromProto(versionVector: VersionVector): VersionVector

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala
def versionVectorToProto(versionVector: VersionVector): VersionVector

Attributes

Inherited from:
SerializationSupport
Source
SerializationSupport.scala

Concrete fields

Actor system which is required by most serializer implementations.

Actor system which is required by most serializer implementations.

Attributes

Source
ReplicatedDataSerializer.scala

Inherited fields

final val SerializationIdentifiers: "pekko.actor.serialization-identifiers"

Configuration namespace of serialization identifiers in the reference.conf.

Configuration namespace of serialization identifiers in the reference.conf.

Each serializer implementation must have an entry in the following format: org.apache.pekko.actor.serialization-identifiers."FQCN" = ID where FQCN is fully qualified class name of the serializer implementation and ID is globally unique serializer identifier number.

Attributes

Inherited from:
BaseSerializer
Source
Serializer.scala
override val identifier: Int

Globally unique serialization identifier configured in the reference.conf.

Globally unique serialization identifier configured in the reference.conf.

See Serializer.identifier.

Attributes

Inherited from:
BaseSerializer
Source
Serializer.scala