Class FutureAsyncTimeout
java.lang.Object
pl.allegro.tech.hermes.consumers.consumer.sender.timeout.FutureAsyncTimeout
see http://www.nurkiewicz.com/2014/12/asynchronous-timeouts-with.html
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidshutdown()<T> CompletableFuture<T> within(CompletableFuture<T> future, Duration duration, Function<Throwable, T> exceptionMapper)
-
Constructor Details
-
FutureAsyncTimeout
-
-
Method Details
-
within
public <T> CompletableFuture<T> within(CompletableFuture<T> future, Duration duration, Function<Throwable, T> exceptionMapper) -
shutdown
public void shutdown()
-