Class/Object

akka.serialization

Serialization

Related Docs: object Serialization | package serialization

Permalink

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.

Source
Serialization.scala
Linear Supertypes
Extension, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Serialization
  2. Extension
  3. AnyRef
  4. 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 Serialization(system: ExtendedActorSystem)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. val AllowJavaSerialization: Boolean

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink

    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. Returns either the resulting object or an Exception if one was thrown.

  10. def deserialize(bytes: Array[Byte], serializerId: Int, manifest: String): Try[AnyRef]

    Permalink

    Deserializes the given array of bytes using the specified serializer id, using the optional type hint to the Serializer.

    Deserializes the given array of bytes using the specified serializer id, using the optional type hint to the Serializer. 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]

    Permalink

    Deserializes the given array of bytes using the specified serializer id, using the optional type hint to the Serializer.

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

  12. def deserializeByteBuffer(buf: ByteBuffer, serializerId: Int, manifest: String): AnyRef

    Permalink

    Deserializes the given ByteBuffer of bytes using the specified serializer id, using the optional type hint to the Serializer.

    Deserializes the given ByteBuffer of bytes using the specified serializer id, using the optional type hint to the Serializer. Returns either the resulting object or throws an exception if deserialization fails.

    Annotations
    @throws( classOf[NotSerializableException] )
  13. def ensuring(cond: (Serialization) ⇒ Boolean, msg: ⇒ Any): Serialization

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

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

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

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

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

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

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

    Permalink

    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.

    Throws akka.ConfigurationException if no serialization-bindings is configured for the class of the object.

  21. def formatted(fmtstr: String): String

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

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

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

    Permalink
    Definition Classes
    Any
  25. val log: LoggingAdapter

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

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

    Permalink

    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.

  30. val serializerByIdentity: Map[Int, Serializer]

    Permalink

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

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

    Permalink

    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.

    Throws java.io.NotSerializableException if no serialization-bindings is configured for the class.

    Annotations
    @throws( classOf[NotSerializableException] )
  32. def serializerOf(serializerFQN: String): Try[Serializer]

    Permalink

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

  33. val settings: Settings

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

    Permalink
    Definition Classes
    AnyRef
  35. val system: ExtendedActorSystem

    Permalink
  36. def toString(): String

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

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

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

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

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

Inherited from Extension

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Serialization to any2stringadd[Serialization]

Inherited by implicit conversion StringFormat from Serialization to StringFormat[Serialization]

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

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

Ungrouped