ProtobufSerializer

This Serializer serializes akka.protobuf.Message and com.google.protobuf.Message It is using reflection to find the parseFrom and toByteArray methods to avoid dependency to com.google.protobuf.

Companion:
object
Source:
ProtobufSerializer.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

override def fromBinary(bytes: Array[Byte], manifest: Option[Class[_]]): AnyRef
Definition Classes
Source:
ProtobufSerializer.scala
override def includeManifest: Boolean
Definition Classes
Source:
ProtobufSerializer.scala
override def toBinary(obj: AnyRef): Array[Byte]
Definition Classes
Source:
ProtobufSerializer.scala

Inherited methods

@throws(scala.Predef.classOf[java.io.NotSerializableException])
final def fromBinary(bytes: Array[Byte], clazz: Class[_]): AnyRef

Java API: deserialize with type hint

Java API: deserialize with type hint

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

Inherited from:
Serializer
Source:
Serializer.scala

Inherited fields

final val SerializationIdentifiers: "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.

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.

Inherited from:
BaseSerializer
Source:
Serializer.scala