Package akka.pattern

Interface FutureTimeoutSupport


  • public interface FutureTimeoutSupport
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> scala.concurrent.Future<T> after​(scala.concurrent.duration.FiniteDuration duration, Scheduler using, scala.Function0<scala.concurrent.Future<T>> value, scala.concurrent.ExecutionContext ec)
      Returns a Future that will be completed with the success or failure of the provided value after the specified duration.
      <T> scala.concurrent.Future<T> after​(scala.concurrent.duration.FiniteDuration duration, scala.Function0<scala.concurrent.Future<T>> value, ClassicActorSystemProvider system)
      Returns a Future that will be completed with the success or failure of the provided value after the specified duration.
      <T> java.util.concurrent.CompletionStage<T> afterCompletionStage​(scala.concurrent.duration.FiniteDuration duration, Scheduler using, scala.Function0<java.util.concurrent.CompletionStage<T>> value, scala.concurrent.ExecutionContext ec)
      Returns a CompletionStage that will be completed with the success or failure of the provided value after the specified duration.
      <T> java.util.concurrent.CompletionStage<T> afterCompletionStage​(scala.concurrent.duration.FiniteDuration duration, scala.Function0<java.util.concurrent.CompletionStage<T>> value, ClassicActorSystemProvider system)
      Returns a CompletionStage that will be completed with the success or failure of the provided value after the specified duration.
    • Method Detail

      • after

        <T> scala.concurrent.Future<T> after​(scala.concurrent.duration.FiniteDuration duration,
                                             scala.Function0<scala.concurrent.Future<T>> value,
                                             ClassicActorSystemProvider system)
        Returns a Future that will be completed with the success or failure of the provided value after the specified duration.
      • after

        <T> scala.concurrent.Future<T> after​(scala.concurrent.duration.FiniteDuration duration,
                                             Scheduler using,
                                             scala.Function0<scala.concurrent.Future<T>> value,
                                             scala.concurrent.ExecutionContext ec)
        Returns a Future that will be completed with the success or failure of the provided value after the specified duration.
      • afterCompletionStage

        <T> java.util.concurrent.CompletionStage<T> afterCompletionStage​(scala.concurrent.duration.FiniteDuration duration,
                                                                         scala.Function0<java.util.concurrent.CompletionStage<T>> value,
                                                                         ClassicActorSystemProvider system)
        Returns a CompletionStage that will be completed with the success or failure of the provided value after the specified duration.
      • afterCompletionStage

        <T> java.util.concurrent.CompletionStage<T> afterCompletionStage​(scala.concurrent.duration.FiniteDuration duration,
                                                                         Scheduler using,
                                                                         scala.Function0<java.util.concurrent.CompletionStage<T>> value,
                                                                         scala.concurrent.ExecutionContext ec)
        Returns a CompletionStage that will be completed with the success or failure of the provided value after the specified duration.