Class

com.twitter.chill.akka

AkkaSerializer

Related Doc: package akka

Permalink

class AkkaSerializer extends Serializer

To use, add a key to your config like:

akka.actor.serializers {
  kryo = "com.twitter.chill.akka.AkkaSerializer"
}

Then for the super-classes of all your message types, for instance, scala.Product, write:

akka.actor.serialization-bindings {
  "scala.Product" = kryo
}

Kryo is not thread-safe so we use an object pool to avoid over allocating.

Linear Supertypes
Serializer, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AkkaSerializer
  2. Serializer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AkkaSerializer(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. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fromBinary(bytes: Array[Byte], clazz: Option[Class[_]]): AnyRef

    Permalink
    Definition Classes
    AkkaSerializer → Serializer
  10. final def fromBinary(bytes: Array[Byte], clazz: Class[_]): AnyRef

    Permalink
    Definition Classes
    Serializer
  11. final def fromBinary(bytes: Array[Byte]): AnyRef

    Permalink
    Definition Classes
    Serializer
  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def identifier: Int

    Permalink
    Definition Classes
    AkkaSerializer → Serializer
  15. def includeManifest: Boolean

    Permalink
    Definition Classes
    AkkaSerializer → Serializer
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def kryoInstantiator: KryoInstantiator

    Permalink

    You can override this to easily change your serializers.

    You can override this to easily change your serializers. If you do so, make sure to change the config to use the name of your new class

  18. val kryoPool: KryoPool

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def poolSize: Int

    Permalink

    Since each thread only needs 1 Kryo, the pool doesn't need more space than the number of threads.

    Since each thread only needs 1 Kryo, the pool doesn't need more space than the number of threads. We guess that there are 4 hyperthreads / core and then multiple by the nember of cores.

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

    Permalink
    Definition Classes
    AnyRef
  24. def toBinary(obj: AnyRef): Array[Byte]

    Permalink
    Definition Classes
    AkkaSerializer → Serializer
  25. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializer

Inherited from AnyRef

Inherited from Any

Ungrouped