This Serializer serializes org.apache.pekko.protobufv3.internal.Message It is using reflection to find the parseFrom and toByteArray methods to avoid dependency to com.google.protobuf.
This is related to the config property pekko.serialization.protobuf.allowed-classes.
Attributes
- Companion
- object
- Source
- ProtobufSerializer.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
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
- Definition Classes
- Source
- ProtobufSerializer.scala
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
- Source
- ProtobufSerializer.scala
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
- Definition Classes
- Source
- ProtobufSerializer.scala
Inherited methods
Java API: deserialize with type hint
Java API: deserialize without type hint
Java API: deserialize without type hint
Attributes
- Inherited from:
- Serializer
- Source
- Serializer.scala
Concrete fields
Actor system which is required by most serializer implementations.
Actor system which is required by most serializer implementations.
Attributes
- Source
- ProtobufSerializer.scala
Inherited fields
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
Globally unique serialization identifier configured in the reference.conf.
Globally unique serialization identifier configured in the reference.conf.
Attributes
- Inherited from:
- BaseSerializer
- Source
- Serializer.scala