Class AsyncTimeout<V>

  • All Implemented Interfaces:
    FaultToleranceStrategy<Future<V>>

    public class AsyncTimeout<V>
    extends Object
    implements FaultToleranceStrategy<Future<V>>
    The next strategy in the chain must be Timeout, and it is invoked on an extra thread. Communication then happens using AsyncTimeoutNotification.

    Note that the TimeoutException thrown from this strategy might come from two places: the Timeout strategy throwing, or AsyncTimeoutTask#timedOut setting an exception as a result of AsyncTimeoutNotification. Both might happen, and whichever happens first gets to decide.