@groovy.transform.CompileStatic abstract class AbstractPromiseFactory
Abstract implementation of the PromiseFactory interface, subclasses should extend this class to obtain common generic functionality
Modifiers | Name | Description |
---|---|---|
protected java.util.Collection<PromiseDecoratorLookupStrategy> |
lookupStrategies |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addPromiseDecoratorLookupStrategy(PromiseDecoratorLookupStrategy lookupStrategy) |
<T> |
groovy.lang.Closure<T> |
applyDecorators(groovy.lang.Closure<T> c, java.util.List<PromiseDecorator> decorators) |
<T> |
Promise<T> |
createBoundPromise(T value) |
<T> |
Promise<T> |
createPromise(groovy.lang.Closure<T> c, java.util.List<PromiseDecorator> decorators) @see PromiseFactory#createPromise(groovy.lang.Closure, java.util.List) |
<T> |
Promise<java.util.List<T>> |
createPromise(java.util.List<groovy.lang.Closure<T>> closures) @see PromiseFactory#createPromise(java.util.List) |
<T> |
Promise<java.util.List<T>> |
createPromise(java.util.List<groovy.lang.Closure<T>> closures, java.util.List<PromiseDecorator> decorators) @see PromiseFactory#createPromise(java.util.List, java.util.List) |
<T> |
Promise<java.util.List<T>> |
createPromise(Promise<T>... promises) @see PromiseFactory#createPromise(grails.async.Promise[]) |
<K, V> |
Promise<java.util.Map<K, V>> |
createPromise(java.util.Map<K, V> map, java.util.List<PromiseDecorator> decorators) |
<K, V> |
Promise<java.util.Map<K, V>> |
createPromise(java.util.Map<K, V> map) @see PromiseFactory#createPromise(java.util.Map) |
|
protected Promise |
createPromiseInternal(groovy.lang.Closure c) |
<T> |
java.util.List<T> |
waitAll(Promise<T>... promises) @see PromiseFactory#waitAll(grails.async.Promise[]) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |