t

akka.serialization

AsyncSerializer

trait AsyncSerializer extends AnyRef

Serializer that supports async serialization.

Only used for Akka persistence journals that explicitly support async serializers.

Implementations should typically extend AsyncSerializerWithStringManifest or AsyncSerializerWithStringManifestCS that delegates synchronous calls to their async equivalents.

Source
AsyncSerializer.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncSerializer
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def fromBinaryAsync(bytes: Array[Byte], manifest: String): Future[AnyRef]

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

  2. abstract def toBinaryAsync(o: AnyRef): Future[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 used to complete the returned Future.