class ReplicatedDataSerializer extends SerializerWithStringManifest with SerializationSupport with BaseSerializer
Protobuf serializer of ReplicatedData.
- Alphabetic
- By Inheritance
- ReplicatedDataSerializer
- BaseSerializer
- SerializationSupport
- SerializerWithStringManifest
- Serializer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ReplicatedDataSerializer(system: ExtendedActorSystem)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to any2stringadd[ReplicatedDataSerializer] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ReplicatedDataSerializer, B)
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to ArrowAssoc[ReplicatedDataSerializer] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
val
SerializationIdentifiers: String("akka.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:
akka.actor.serialization-identifiers."FQCN" = ID
whereFQCN
is fully qualified class name of the serializer implementation andID
is globally unique serializer identifier number.- Definition Classes
- BaseSerializer
-
def
addressFromProto(address: Address): Address
- Definition Classes
- SerializationSupport
-
def
addressProtocol: String
- Definition Classes
- SerializationSupport
-
def
addressToProto(address: Address): Builder
- Definition Classes
- SerializationSupport
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
def
compress(msg: MessageLite): Array[Byte]
- Definition Classes
- SerializationSupport
-
def
decompress(bytes: Array[Byte]): Array[Byte]
- Definition Classes
- SerializationSupport
-
def
ensuring(cond: (ReplicatedDataSerializer) ⇒ Boolean, msg: ⇒ Any): ReplicatedDataSerializer
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to Ensuring[ReplicatedDataSerializer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ReplicatedDataSerializer) ⇒ Boolean): ReplicatedDataSerializer
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to Ensuring[ReplicatedDataSerializer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ReplicatedDataSerializer
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to Ensuring[ReplicatedDataSerializer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ReplicatedDataSerializer
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to Ensuring[ReplicatedDataSerializer] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def flagFromBinary(bytes: Array[Byte]): Flag
- def flagFromProto(flag: msg.ReplicatedDataMessages.Flag): Flag
- def flagToProto(flag: Flag): msg.ReplicatedDataMessages.Flag
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to StringFormat[ReplicatedDataSerializer] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
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
infromBinary
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.- Definition Classes
- ReplicatedDataSerializer → SerializerWithStringManifest
-
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.
- Definition Classes
- SerializerWithStringManifest → Serializer
-
final
def
fromBinary(bytes: Array[Byte], clazz: Class[_]): AnyRef
Java API: deserialize with type hint
Java API: deserialize with type hint
- Definition Classes
- Serializer
- Annotations
- @throws( classOf[NotSerializableException] )
-
final
def
fromBinary(bytes: Array[Byte]): AnyRef
Java API: deserialize without type hint
Java API: deserialize without type hint
- Definition Classes
- Serializer
- def gcounterFromBinary(bytes: Array[Byte]): GCounter
- def gcounterFromProto(gcounter: msg.ReplicatedDataMessages.GCounter): GCounter
- def gcounterToProto(gcounter: GCounter): msg.ReplicatedDataMessages.GCounter
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def gsetFromBinary(bytes: Array[Byte]): GSet[_]
- def gsetFromProto(gset: msg.ReplicatedDataMessages.GSet): GSet[Any]
- def gsetToProto(gset: GSet[_]): msg.ReplicatedDataMessages.GSet
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
identifier: Int
Globally unique serialization identifier configured in the
reference.conf
.Globally unique serialization identifier configured in the
reference.conf
.- Definition Classes
- BaseSerializer → Serializer
-
final
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
- Definition Classes
- SerializerWithStringManifest → Serializer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keyIdFromBinary(bytes: Array[Byte]): String
- def keyIdToBinary(id: String): Array[Byte]
- def lwwRegisterFromBinary(bytes: Array[Byte]): LWWRegister[Any]
- def lwwRegisterFromProto(lwwRegister: msg.ReplicatedDataMessages.LWWRegister): LWWRegister[Any]
- def lwwRegisterToProto(lwwRegister: LWWRegister[_]): msg.ReplicatedDataMessages.LWWRegister
- def lwwmapFromBinary(bytes: Array[Byte]): LWWMap[Any, Any]
- def lwwmapFromProto(lwwmap: msg.ReplicatedDataMessages.LWWMap): LWWMap[Any, Any]
- def lwwmapToProto(lwwmap: LWWMap[_, _]): msg.ReplicatedDataMessages.LWWMap
-
def
manifest(obj: AnyRef): String
Return the manifest (type hint) that will be provided in the fromBinary method.
Return the manifest (type hint) that will be provided in the fromBinary method. Use
""
if manifest is not needed.- Definition Classes
- ReplicatedDataSerializer → SerializerWithStringManifest
- def mapTypeFromProto[PEntry <: GeneratedMessage, A <: GeneratedMessage, B <: ReplicatedData](input: List[PEntry], valueCreator: (A) ⇒ B)(implicit eh: ProtoMapEntryReader[PEntry, A]): Map[Any, B]
- def multimapFromBinary(bytes: Array[Byte]): ORMultiMap[Any, Any]
- def multimapFromProto(multimap: msg.ReplicatedDataMessages.ORMultiMap): ORMultiMap[Any, Any]
- def multimapToProto(multimap: ORMultiMap[_, _]): msg.ReplicatedDataMessages.ORMultiMap
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ormapFromBinary(bytes: Array[Byte]): ORMap[Any, ReplicatedData]
- def ormapFromProto(ormap: msg.ReplicatedDataMessages.ORMap): ORMap[Any, ReplicatedData]
- def ormapToProto(ormap: ORMap[_, _]): msg.ReplicatedDataMessages.ORMap
- def orsetFromBinary(bytes: Array[Byte]): ORSet[Any]
- def orsetFromProto(orset: msg.ReplicatedDataMessages.ORSet): ORSet[Any]
- def orsetToProto(orset: ORSet[_]): msg.ReplicatedDataMessages.ORSet
-
def
otherMessageFromBinary(bytes: Array[Byte]): AnyRef
- Definition Classes
- SerializationSupport
-
def
otherMessageFromProto(other: OtherMessage): AnyRef
- Definition Classes
- SerializationSupport
-
def
otherMessageToProto(msg: Any): OtherMessage
- Definition Classes
- SerializationSupport
- def pncounterFromBinary(bytes: Array[Byte]): PNCounter
- def pncounterFromProto(pncounter: msg.ReplicatedDataMessages.PNCounter): PNCounter
- def pncounterToProto(pncounter: PNCounter): msg.ReplicatedDataMessages.PNCounter
- def pncountermapFromBinary(bytes: Array[Byte]): PNCounterMap[_]
- def pncountermapFromProto(pncountermap: msg.ReplicatedDataMessages.PNCounterMap): PNCounterMap[_]
- def pncountermapToProto(pncountermap: PNCounterMap[_]): msg.ReplicatedDataMessages.PNCounterMap
-
def
resolveActorRef(path: String): ActorRef
- Definition Classes
- SerializationSupport
-
def
serialization: Serialization
- Definition Classes
- SerializationSupport
- def singleKeyEntryFromProto[PEntry <: GeneratedMessage, A <: GeneratedMessage](entryOption: Option[PEntry])(implicit eh: ProtoMapEntryReader[PEntry, A]): Any
- def singleMapEntryFromProto[PEntry <: GeneratedMessage, A <: GeneratedMessage, B <: ReplicatedData](input: List[PEntry], valueCreator: (A) ⇒ B)(implicit eh: ProtoMapEntryReader[PEntry, A]): Map[Any, B]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
system: ExtendedActorSystem
Actor system which is required by most serializer implementations.
Actor system which is required by most serializer implementations.
- Definition Classes
- ReplicatedDataSerializer → BaseSerializer → SerializationSupport
-
def
toBinary(obj: AnyRef): Array[Byte]
Serializes the given object into an Array of Byte
Serializes the given object into an Array of Byte
- Definition Classes
- ReplicatedDataSerializer → SerializerWithStringManifest → Serializer
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transportInformation: Information
- Definition Classes
- SerializationSupport
-
def
uniqueAddressFromProto(uniqueAddress: msg.ReplicatorMessages.UniqueAddress): UniqueAddress
- Definition Classes
- SerializationSupport
-
def
uniqueAddressToProto(uniqueAddress: UniqueAddress): Builder
- Definition Classes
- SerializationSupport
-
def
versionVectorFromBinary(bytes: Array[Byte]): VersionVector
- Definition Classes
- SerializationSupport
-
def
versionVectorFromProto(versionVector: msg.ReplicatorMessages.VersionVector): VersionVector
- Definition Classes
- SerializationSupport
-
def
versionVectorToProto(versionVector: VersionVector): msg.ReplicatorMessages.VersionVector
- Definition Classes
- SerializationSupport
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (ReplicatedDataSerializer, B)
- Implicit
- This member is added by an implicit conversion from ReplicatedDataSerializer to ArrowAssoc[ReplicatedDataSerializer] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc