Class AskPattern

  • Type Parameters:
    Req - The request protocol, what the other actor accepts
    Res - The response protocol, what the other actor sends back

    public class AskPattern
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AskPattern()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <Req,​Res>
      java.util.concurrent.CompletionStage<Res>
      ask​(RecipientRef<Req> actor, Function<ActorRef<Res>,​Req> messageFactory, java.time.Duration timeout, Scheduler scheduler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AskPattern

        public AskPattern()
    • Method Detail

      • ask

        public static <Req,​Res> java.util.concurrent.CompletionStage<Res> ask​(RecipientRef<Req> actor,
                                                                                    Function<ActorRef<Res>,​Req> messageFactory,
                                                                                    java.time.Duration timeout,
                                                                                    Scheduler scheduler)