public class MapPromise<T1,T2> extends Object implements IPromise<T2>
| Modifier and Type | Field and Description |
|---|---|
Fn2<T1,T2> |
f |
IPromise<T1> |
p |
static Object |
sentinel |
Object |
value |
| Constructor and Description |
|---|
MapPromise(IPromise<T1> p,
Fn2<T1,T2> f) |
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(Object value) |
T2 |
deref() |
Object |
deref(long millis,
Object timeoutValue) |
T2 |
deref(long time,
TimeUnit unit) |
T2 |
deref(long time,
TimeUnit unit,
T2 timeoutValue) |
<T3> IPromise<T3> |
map(Fn2<T2,T3> f) |
Object |
mapCapturingExceptions(T1 x) |
Object |
unsafeDeref(long time,
TimeUnit unit,
Object timeoutValue) |
public T2 deref() throws IOException
public T2 deref(long time, TimeUnit unit) throws IOException
deref in interface IPromise<T2>IOExceptionpublic T2 deref(long time, TimeUnit unit, T2 timeoutValue) throws IOException
deref in interface IPromise<T2>IOExceptionpublic Object deref(long millis, Object timeoutValue) throws IOException
deref in interface IBlockingDerefIOExceptionpublic Object unsafeDeref(long time, TimeUnit unit, Object timeoutValue) throws IOException
unsafeDeref in interface IPromise<T2>IOExceptionCopyright © 2015. All rights reserved.