T - the type of output of a successful processpublic interface SettablePartial<T> extends Settable<T>
| Modifier and Type | Method and Description |
|---|---|
void |
setError(Exception error)
Set this
Settable to an error. |
isSet, onCancelled, onCancelledCancel, set, setError, setErrorvoid setError(Exception error)
Settable to an error. This call will invoke callbacks, and unblock
all Threads waiting on associated Futures. A Settable
can be set only once and this call will
throw an exception if this object is already set to a value or error. It
is not, however, an error to call this method if the operation has been cancelled.
If the task has been cancelled, this call will have no effect.error - the error encountered in the course of this processIllegalStateException - if set() or setError() has
already been called.