Class AskPattern

java.lang.Object
org.apache.pekko.actor.typed.scaladsl.AskPattern

public class AskPattern extends Object
The ask-pattern implements the initiator side of a request–reply protocol.

See AskPattern.Askable.ask for details

  • Constructor Details

    • AskPattern

      public AskPattern()
  • Method Details

    • schedulerFromActorSystem

      public static Scheduler schedulerFromActorSystem(ActorSystem<?> system)
      Provides a scheduler from an actor system (that will likely already be implicit in the scope) to minimize ask boilerplate.
    • Askable

      public static final <Req> AskPattern.Askable<Req> Askable(RecipientRef<Req> ref)