V
- The generic type of the computation to which the Future
evaluates.public interface IHaltable<V> extends Future<V>
Future
and provides an interface for managing the
termination of a process from within that process.Modifier and Type | Method and Description |
---|---|
Throwable |
getAsThrownCause()
Return the first
cause regardless of whether it is
indicative of normal termination and null iff no cause has
been set. |
Throwable |
getCause()
Return the first
Throwable which caused this process to halt, but
only for abnormal termination. |
<T extends Throwable> |
halt(T cause)
Halt (exception thrown).
|
void |
halt(V v)
Halt (normal termination).
|
void halt(V v)
<T extends Throwable> T halt(T cause)
cause
- The cause (required).Throwable getCause()
Throwable
which caused this process to halt, but
only for abnormal termination.
IHaltable
considers exceptions triggered by an interrupt to be
normal termination of the process and will return null
for
such exceptions.
Throwable
which caused this process to halt and
null
if the process has not halted or if it halted
through normal termination.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.