Class FutureAsyncTimeout<T>
- java.lang.Object
-
- pl.allegro.tech.hermes.consumers.consumer.sender.timeout.FutureAsyncTimeout<T>
-
public class FutureAsyncTimeout<T> extends java.lang.Objectsee http://www.nurkiewicz.com/2014/12/asynchronous-timeouts-with.html
-
-
Constructor Summary
Constructors Constructor Description FutureAsyncTimeout(java.util.function.Function<java.util.concurrent.TimeoutException,T> failure, java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshutdown()java.util.concurrent.CompletableFuture<T>within(java.util.concurrent.CompletableFuture<T> future, java.time.Duration duration)
-
-
-
Constructor Detail
-
FutureAsyncTimeout
public FutureAsyncTimeout(java.util.function.Function<java.util.concurrent.TimeoutException,T> failure, java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
-
-