Package

com.twitter.chill

akka

Permalink

package akka

Visibility
  1. Public
  2. All

Type Members

  1. class ActorRefSerializer extends Serializer[ActorRef] with IKryoRegistrar

    Permalink

    * This module provides helper classes for serialization of Akka-specific classes.

  2. class AkkaConfig extends Config

    Permalink

    Wraps the immutable typesafe.config.Config in a wrapper that keeps track of the state and follows the semantics of ChillConfig

  3. class AkkaSerializer extends Serializer

    Permalink

    To use, add a key to your config like:

    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.

  4. class ConfiguredAkkaSerializer extends AkkaSerializer

    Permalink

    Uses the Config system of chill.config to Configure at runtime which KryoInstantiator to use Overriding kryoInstantiator and using your own class name is probably easier for most cases.

    Uses the Config system of chill.config to Configure at runtime which KryoInstantiator to use Overriding kryoInstantiator and using your own class name is probably easier for most cases. See ConfiguredInstantiator static methods for how to build up a correct Config with your reflected or serialized instantiators.

Ungrouped