ValueType - The type of the value to wrappublic final class ParallelPromise<ValueType> extends ParallelFuture<ValueType> implements HjPromise<ValueType>
ParallelFuture.EventType| Modifier | Constructor and Description |
|---|---|
protected |
ParallelPromise()
No-args Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <ValueType> |
factory()
Factory method.
|
ValueType |
get() |
protected void |
throwPutFailedException(ValueType newValue) |
attachListener, failed, put, resolvedpublic static <ValueType> ParallelPromise<ValueType> factory()
ValueType - The type of the value to wrappublic ValueType get()
protected void throwPutFailedException(ValueType newValue)
throwPutFailedException in class ParallelFuture<ValueType>newValue - The value attempted to put into the future