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

public static class MatsFuturizer.MatsFuturizerTimeoutException extends RuntimeException
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 Details

    • MatsFuturizerTimeoutException

      public MatsFuturizerTimeoutException(String message, long initiationTimestamp, String traceId)
  • Method Details

    • getInitiationTimestamp

      public long getInitiationTimestamp()
    • getTraceId

      public String getTraceId()