| Constructor and description |
|---|
PromiseMap() |
PromiseMap(Map<K, V> values) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Promise<Map<K, V>> |
accept(Map<K, V> values) |
|
boolean |
cancel(boolean mayInterruptIfRunning) |
|
boolean |
containsKey(K o)
|
|
Promise |
get(K o)Gets a promise instance for the given key |
|
Map<K, V> |
get()Synchronously return the populated map with all values obtained from promises used inside the populated map |
|
Map<K, V> |
get(long timeout, TimeUnit units)Synchronously return the populated map with all values obtained from promises used inside the populated map |
|
Promise |
getAt(K o)Gets a promise instance for the given key |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
|
boolean |
isEmpty()
|
|
Promise<Map<K, V>> |
leftShift(Closure callable) |
|
Promise<Map<K, V>> |
onComplete(Closure callable) |
|
Promise<Map<K, V>> |
onError(Closure callable) |
|
Promise |
put(K k, Object value)Put any value and return a promise for that value |
|
Promise |
put(K k, Promise<V> promise)Adds a promise for the given key |
|
Promise |
put(K k, Closure<V> callable)Adds a promise for the given key |
|
Promise |
putAt(String k, Promise promise)Adds a promise for the given key |
|
Promise |
putAt(String k, Closure promise)Adds a promise for the given key |
|
Promise |
putAt(String k, Object value)Adds a promise for the given key |
|
Promise |
putAt(Integer k, Promise promise)Adds a promise for the given key |
|
Promise |
putAt(Integer k, Closure promise)Adds a promise for the given key |
|
int |
size()
|
|
Promise<Map<K, V>> |
then(Closure callable) |
o - The keyGets a promise instance for the given key
o - The keySynchronously return the populated map with all values obtained from promises used inside the populated map
Synchronously return the populated map with all values obtained from promises used inside the populated map
timeout - The timeout periodunits - The timeout unitsGets a promise instance for the given key
o - The key
Put any value and return a promise for that value
k - The keyvalue - The valueAdds a promise for the given key
k - The keypromise - The promiseAdds a promise for the given key
k - The keypromise - The promiseAdds a promise for the given key
k - The keypromise - The promiseAdds a promise for the given key
k - The keypromise - The promiseAdds a promise for the given key
k - The keypromise - The promiseAdds a promise for the given key
k - The keypromise - The promiseAdds a promise for the given key
k - The keypromise - The promise