akka.serialization

Serialization

class Serialization extends Extension

Serialization module. Contains methods for serialization and deserialization as well as locating a Serializer for a particular class as defined in the mapping in the configuration.

Linear Supertypes
Extension, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Serialization
  2. Extension
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Serialization(system: ExtendedActorSystem)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Serialization to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Serialization, B)

    Implicit information
    This member is added by an implicit conversion from Serialization to ArrowAssoc[Serialization] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def deserialize[T](bytes: Array[Byte], clazz: Class[T]): Try[T]

    Deserializes the given array of bytes using the specified type to look up what Serializer should be used.

    Deserializes the given array of bytes using the specified type to look up what Serializer should be used. You can specify an optional ClassLoader to load the object into. Returns either the resulting object or an Exception if one was thrown.

  11. def deserialize[T](bytes: Array[Byte], serializerId: Int, clazz: Option[Class[_ <: T]]): Try[T]

    Deserializes the given array of bytes using the specified serializer id, using the optional type hint to the Serializer and the optional ClassLoader ot load it into.

    Deserializes the given array of bytes using the specified serializer id, using the optional type hint to the Serializer and the optional ClassLoader ot load it into. Returns either the resulting object or an Exception if one was thrown.

  12. def ensuring(cond: (Serialization) ⇒ Boolean, msg: ⇒ Any): Serialization

    Implicit information
    This member is added by an implicit conversion from Serialization to Ensuring[Serialization] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Serialization) ⇒ Boolean): Serialization

    Implicit information
    This member is added by an implicit conversion from Serialization to Ensuring[Serialization] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Serialization

    Implicit information
    This member is added by an implicit conversion from Serialization to Ensuring[Serialization] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Serialization

    Implicit information
    This member is added by an implicit conversion from Serialization to Ensuring[Serialization] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def findSerializerFor(o: AnyRef): Serializer

    Returns the Serializer configured for the given object, returns the NullSerializer if it's null.

    Returns the Serializer configured for the given object, returns the NullSerializer if it's null.

    Exceptions thrown
    akka.ConfigurationException

    if no serialization-bindings is configured for the class of the object

  20. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Serialization to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. val log: LoggingAdapter

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def serialize(o: AnyRef): Try[Array[Byte]]

    Serializes the given AnyRef/java.

    Serializes the given AnyRef/java.lang.Object according to the Serialization configuration to either an Array of Bytes or an Exception if one was thrown.

  29. val serializerByIdentity: Map[Int, Serializer]

    Maps from a Serializer Identity (Int) to a Serializer instance (optimization)

  30. def serializerFor(clazz: Class[_]): Serializer

    Returns the configured Serializer for the given Class.

    Returns the configured Serializer for the given Class. The configured Serializer is used if the configured class isAssignableFrom from the clazz, i.e. the configured class is a super class or implemented interface. In case of ambiguity it is primarily using the most specific configured class, and secondly the entry configured first.

    Exceptions thrown
    java.io.NotSerializableException

    if no serialization-bindings is configured for the class

  31. def serializerOf(serializerFQN: String): Try[Serializer]

    Tries to load the specified Serializer by the fully-qualified name; the actual loading is performed by the system’s akka.actor.DynamicAccess.

  32. val settings: Settings

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. val system: ExtendedActorSystem

  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def [B](y: B): (Serialization, B)

    Implicit information
    This member is added by an implicit conversion from Serialization to ArrowAssoc[Serialization] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Serialization to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serialization: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Serialization to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serialization: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Serialization

    Implicit information
    This member is added by an implicit conversion from Serialization to ArrowAssoc[Serialization] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serialization: ArrowAssoc[Serialization]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Serialization

    Implicit information
    This member is added by an implicit conversion from Serialization to Ensuring[Serialization] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (serialization: Ensuring[Serialization]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Extension

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Serialization to StringAdd

Inherited by implicit conversion any2stringfmt from Serialization to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Serialization to ArrowAssoc[Serialization]

Inherited by implicit conversion any2Ensuring from Serialization to Ensuring[Serialization]

Ungrouped