Packages

c

akka.cluster.ddata.protobuf

ReplicatedDataSerializer

class ReplicatedDataSerializer extends SerializerWithStringManifest with SerializationSupport with BaseSerializer

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedDataSerializer
  2. BaseSerializer
  3. SerializationSupport
  4. SerializerWithStringManifest
  5. Serializer
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReplicatedDataSerializer(system: ExtendedActorSystem)

Value Members

  1. 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 where FQCN is fully qualified class name of the serializer implementation and ID is globally unique serializer identifier number.

    Definition Classes
    BaseSerializer
  2. def addressFromProto(address: Address): Address
    Definition Classes
    SerializationSupport
  3. def addressProtocol: String
    Definition Classes
    SerializationSupport
  4. def addressToProto(address: Address): Builder
    Definition Classes
    SerializationSupport
  5. def compress(msg: MessageLite): Array[Byte]
    Definition Classes
    SerializationSupport
  6. def decompress(bytes: Array[Byte]): Array[Byte]
    Definition Classes
    SerializationSupport
  7. def flagFromBinary(bytes: Array[Byte]): Flag
  8. def flagFromProto(flag: msg.ReplicatedDataMessages.Flag): Flag
  9. def flagToProto(flag: Flag): msg.ReplicatedDataMessages.Flag
  10. 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.

    Definition Classes
    ReplicatedDataSerializerSerializerWithStringManifest
  11. 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
    SerializerWithStringManifestSerializer
  12. 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] )
  13. final def fromBinary(bytes: Array[Byte]): AnyRef

    Java API: deserialize without type hint

    Java API: deserialize without type hint

    Definition Classes
    Serializer
  14. def gcounterFromBinary(bytes: Array[Byte]): GCounter
  15. def gcounterFromProto(gcounter: msg.ReplicatedDataMessages.GCounter): GCounter
  16. def gcounterToProto(gcounter: GCounter): msg.ReplicatedDataMessages.GCounter
  17. def gsetFromBinary(bytes: Array[Byte]): GSet[_]
  18. def gsetFromProto(gset: msg.ReplicatedDataMessages.GSet): GSet[Any]
  19. def gsetToProto(gset: GSet[_]): msg.ReplicatedDataMessages.GSet
  20. val identifier: Int

    Globally unique serialization identifier configured in the reference.conf.

    Globally unique serialization identifier configured in the reference.conf.

    See Serializer#identifier.

    Definition Classes
    BaseSerializerSerializer
  21. 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
    SerializerWithStringManifestSerializer
  22. def keyIdFromBinary(bytes: Array[Byte]): String
  23. def keyIdToBinary(id: String): Array[Byte]
  24. def lwwRegisterFromBinary(bytes: Array[Byte]): LWWRegister[Any]
  25. def lwwRegisterFromProto(lwwRegister: msg.ReplicatedDataMessages.LWWRegister): LWWRegister[Any]
  26. def lwwRegisterToProto(lwwRegister: LWWRegister[_]): msg.ReplicatedDataMessages.LWWRegister
  27. def lwwmapFromBinary(bytes: Array[Byte]): LWWMap[Any, Any]
  28. def lwwmapFromProto(lwwmap: msg.ReplicatedDataMessages.LWWMap): LWWMap[Any, Any]
  29. def lwwmapToProto(lwwmap: LWWMap[_, _]): msg.ReplicatedDataMessages.LWWMap
  30. 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
    ReplicatedDataSerializerSerializerWithStringManifest
  31. def mapTypeFromProto[PEntry <: GeneratedMessage, A <: GeneratedMessage, B <: ReplicatedData](input: List[PEntry], valueCreator: (A) ⇒ B)(implicit eh: ProtoMapEntryReader[PEntry, A]): Map[Any, B]
  32. def multimapFromBinary(bytes: Array[Byte]): ORMultiMap[Any, Any]
  33. def multimapFromProto(multimap: msg.ReplicatedDataMessages.ORMultiMap): ORMultiMap[Any, Any]
  34. def multimapToProto(multimap: ORMultiMap[_, _]): msg.ReplicatedDataMessages.ORMultiMap
  35. def ormapFromBinary(bytes: Array[Byte]): ORMap[Any, ReplicatedData]
  36. def ormapFromProto(ormap: msg.ReplicatedDataMessages.ORMap): ORMap[Any, ReplicatedData]
  37. def ormapToProto(ormap: ORMap[_, _]): msg.ReplicatedDataMessages.ORMap
  38. def orsetFromBinary(bytes: Array[Byte]): ORSet[Any]
  39. def orsetFromProto(orset: msg.ReplicatedDataMessages.ORSet): ORSet[Any]
  40. def orsetToProto(orset: ORSet[_]): msg.ReplicatedDataMessages.ORSet
  41. def otherMessageFromBinary(bytes: Array[Byte]): AnyRef
    Definition Classes
    SerializationSupport
  42. def otherMessageFromProto(other: OtherMessage): AnyRef
    Definition Classes
    SerializationSupport
  43. def otherMessageToProto(msg: Any): OtherMessage
    Definition Classes
    SerializationSupport
  44. def pncounterFromBinary(bytes: Array[Byte]): PNCounter
  45. def pncounterFromProto(pncounter: msg.ReplicatedDataMessages.PNCounter): PNCounter
  46. def pncounterToProto(pncounter: PNCounter): msg.ReplicatedDataMessages.PNCounter
  47. def pncountermapFromBinary(bytes: Array[Byte]): PNCounterMap[_]
  48. def pncountermapFromProto(pncountermap: msg.ReplicatedDataMessages.PNCounterMap): PNCounterMap[_]
  49. def pncountermapToProto(pncountermap: PNCounterMap[_]): msg.ReplicatedDataMessages.PNCounterMap
  50. def resolveActorRef(path: String): ActorRef
    Definition Classes
    SerializationSupport
  51. def serialization: Serialization
    Definition Classes
    SerializationSupport
  52. def singleKeyEntryFromProto[PEntry <: GeneratedMessage, A <: GeneratedMessage](entryOption: Option[PEntry])(implicit eh: ProtoMapEntryReader[PEntry, A]): Any
  53. def singleMapEntryFromProto[PEntry <: GeneratedMessage, A <: GeneratedMessage, B <: ReplicatedData](input: List[PEntry], valueCreator: (A) ⇒ B)(implicit eh: ProtoMapEntryReader[PEntry, A]): Map[Any, B]
  54. val system: ExtendedActorSystem

    Actor system which is required by most serializer implementations.

    Actor system which is required by most serializer implementations.

    Definition Classes
    ReplicatedDataSerializerBaseSerializerSerializationSupport
  55. 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
    ReplicatedDataSerializerSerializerWithStringManifestSerializer
  56. def transportInformation: Information
    Definition Classes
    SerializationSupport
  57. def uniqueAddressFromProto(uniqueAddress: msg.ReplicatorMessages.UniqueAddress): UniqueAddress
    Definition Classes
    SerializationSupport
  58. def uniqueAddressToProto(uniqueAddress: UniqueAddress): Builder
    Definition Classes
    SerializationSupport
  59. def versionVectorFromBinary(bytes: Array[Byte]): VersionVector
    Definition Classes
    SerializationSupport
  60. def versionVectorFromProto(versionVector: msg.ReplicatorMessages.VersionVector): VersionVector
    Definition Classes
    SerializationSupport
  61. def versionVectorToProto(versionVector: VersionVector): msg.ReplicatorMessages.VersionVector
    Definition Classes
    SerializationSupport