public class DefaultResilientPromise<T> extends AbstractResilientPromise<T>
result| Constructor and Description |
|---|
DefaultResilientPromise() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deliverError(java.lang.Exception error)
Deliver an error to this promise.
|
boolean |
deliverResult(T result)
Deliver the result to this promise.
|
boolean |
setTimedOut()
Set the promise
Status to timeout. |
await, await, awaitResult, getError, getResult, getStatus, isDone, isError, isSuccessful, isTimedOut, wrapPromisepublic boolean deliverResult(T result)
ResilientPromiseresult - the result of the promisepublic boolean deliverError(java.lang.Exception error)
ResilientPromiseerror - the error to deliverpublic boolean setTimedOut()
ResilientPromiseStatus to timeout. If the promise has already been completed,
this method will return false.Copyright © 2014 Tim Brooks. All Rights Reserved.