Package io.mats3.util
Class MatsFuturizer.MatsFuturizerTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.mats3.util.MatsFuturizer.MatsFuturizerTimeoutException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- MatsFuturizer
This exception is raised through the
CompletableFuture
if the timeout specified when getting the
CompletableFuture
is reached (to get yourself a future, use one of the
futurizeXYZ(..)
methods). The exception is
passed to the waiter on the future by CompletableFuture.completeExceptionally(Throwable)
, where the
consumer can pick it up with e.g. CompletableFuture.exceptionally(Function)
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMatsFuturizerTimeoutException
(String message, long initiationTimestamp, String traceId) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MatsFuturizerTimeoutException
-
-
Method Details
-
getInitiationTimestamp
public long getInitiationTimestamp() -
getTraceId
-