Object

akka.actor.typed.javadsl

Adapter

Related Doc: package javadsl

Permalink

object Adapter

Java API: Adapters between typed and untyped actors and actor systems. The underlying ActorSystem is the untyped akka.actor.ActorSystem which runs Akka Typed akka.actor.typed.Behavior on an emulation layer. In this system typed and untyped actors can coexist.

These methods make it possible to create typed child actor from untyped parent actor, and the opposite untyped child from typed parent. watch is also supported in both directions.

There are also converters (toTyped, toUntyped) between untyped akka.actor.ActorRef and typed akka.actor.typed.ActorRef, and between untyped akka.actor.ActorSystem and typed akka.actor.typed.ActorSystem.

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

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. def actorOf(ctx: ActorContext[_], props: actor.Props, name: String): actor.ActorRef

    Permalink
  5. def actorOf(ctx: ActorContext[_], props: actor.Props): actor.ActorRef

    Permalink
  6. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def props[T](behavior: Creator[Behavior[T]]): actor.Props

    Permalink

    Wrap akka.actor.typed.Behavior in an untyped akka.actor.Props, i.e.

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

  18. def props[T](behavior: Creator[Behavior[T]], deploy: Props): actor.Props

    Permalink

    Wrap akka.actor.typed.Behavior in an untyped akka.actor.Props, i.e.

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

  19. def spawn[T](ctx: actor.ActorContext, behavior: Behavior[T], name: String, props: Props): ActorRef[T]

    Permalink
  20. def spawn[T](ctx: actor.ActorContext, behavior: Behavior[T], name: String): ActorRef[T]

    Permalink
  21. def spawn[T](sys: actor.ActorSystem, behavior: Behavior[T], name: String, props: Props): ActorRef[T]

    Permalink
  22. def spawn[T](sys: actor.ActorSystem, behavior: Behavior[T], name: String): ActorRef[T]

    Permalink
  23. def spawnAnonymous[T](ctx: actor.ActorContext, behavior: Behavior[T], props: Props): ActorRef[T]

    Permalink
  24. def spawnAnonymous[T](ctx: actor.ActorContext, behavior: Behavior[T]): ActorRef[T]

    Permalink
  25. def spawnAnonymous[T](sys: actor.ActorSystem, behavior: Behavior[T], props: Props): ActorRef[T]

    Permalink
  26. def spawnAnonymous[T](sys: actor.ActorSystem, behavior: Behavior[T]): ActorRef[T]

    Permalink
  27. def stop(ctx: ActorContext[_], child: actor.ActorRef): Unit

    Permalink
  28. def stop(ctx: actor.ActorContext, child: ActorRef[_]): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def toTyped[T](ref: actor.ActorRef): ActorRef[T]

    Permalink
  32. def toTyped(sys: actor.ActorSystem): ActorSystem[Void]

    Permalink
  33. def toUntyped(ref: ActorRef[_]): actor.ActorRef

    Permalink
  34. def toUntyped(sys: ActorSystem[_]): actor.ActorSystem

    Permalink
  35. def unwatch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit

    Permalink
  36. def unwatch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit

    Permalink
  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 watch[U](ctx: ActorContext[_], other: actor.ActorRef): Unit

    Permalink
  41. def watch[U](ctx: actor.ActorContext, other: ActorRef[U]): Unit

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped