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> 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.
    • Method Detail

      • 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.
        Parameters:
        duration - (undocumented)
        using - (undocumented)
        value - (undocumented)
        ec - (undocumented)
        Returns:
        (undocumented)
      • 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.
        Parameters:
        duration - (undocumented)
        using - (undocumented)
        value - (undocumented)
        ec - (undocumented)
        Returns:
        (undocumented)