Class AsyncResponseUtils

java.lang.Object
io.trino.server.AsyncResponseUtils

public class AsyncResponseUtils extends Object
  • Method Details

    • withFallbackAfterTimeout

      public static <V> com.google.common.util.concurrent.ListenableFuture<V> withFallbackAfterTimeout(com.google.common.util.concurrent.ListenableFuture<V> future, io.airlift.units.Duration timeout, Supplier<V> fallback, Executor responseExecutor, ScheduledExecutorService timeoutExecutor)