Packages

package adapter

Adapters between typed and classic actors and actor systems. The underlying ActorSystem is the classic pekko.actor.ActorSystem which runs Pekko Typed pekko.actor.typed.Behavior on an emulation layer. In this system typed and classic actors can coexist.

Use these adapters with import org.apache.pekko.actor.typed.scaladsl.adapter._.

Implicit extension methods are added to classic and typed ActorSystem, ActorContext. Such methods make it possible to create typed child actor from classic parent actor, and the opposite classic child from typed parent. watch is also supported in both directions.

There is an implicit conversion from classic pekko.actor.ActorRef to typed pekko.actor.typed.ActorRef.

There are also converters (toTyped, toClassic) from typed pekko.actor.typed.ActorRef to classic pekko.actor.ActorRef, and between classic pekko.actor.ActorSystem and typed pekko.actor.typed.ActorSystem.

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. adapter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit final class ClassicActorContextOps extends AnyVal

    Extension methods added to pekko.actor.ActorContext.

  2. implicit final class ClassicActorRefOps extends AnyVal

    Extension methods added to pekko.actor.ActorRef.

  3. implicit final class ClassicActorSystemOps extends AnyVal

    Extension methods added to pekko.actor.ActorSystem.

  4. implicit final class ClassicSchedulerOps extends AnyVal

    Extension methods added to pekko.actor.Scheduler.

  5. implicit final class TypedActorContextOps extends AnyVal

    Extension methods added to pekko.actor.typed.scaladsl.ActorContext.

  6. implicit final class TypedActorRefOps extends AnyVal

    Extension methods added to pekko.actor.typed.ActorRef.

  7. implicit final class TypedActorSystemOps extends AnyVal

    Extension methods added to pekko.actor.typed.ActorSystem.

  8. implicit final class TypedSchedulerOps extends AnyVal

    Extension methods added to pekko.actor.typed.Scheduler.

Value Members

  1. implicit def actorRefAdapter[T](ref: actor.ActorRef): ActorRef[T]

    Implicit conversion from classic pekko.actor.ActorRef to pekko.actor.typed.ActorRef.

  2. object PropsAdapter

    Wrap pekko.actor.typed.Behavior in a classic pekko.actor.Props, i.e.

    Wrap pekko.actor.typed.Behavior in a classic pekko.actor.Props, i.e. when spawning a typed child actor from a classic parent actor. This is normally not needed because you can use the extension methods spawn and spawnAnonymous on a classic ActorContext, but it's needed when using typed actors with an existing library/tool that provides an API that takes a classic pekko.actor.Props parameter. Cluster Sharding is an example of that.

Inherited from AnyRef

Inherited from Any

Ungrouped