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