JavaScript is disabled on your browser.
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
A
AbstractPromiseFactory
- Class in
grails.async.factory
Abstract implementation of the
PromiseFactory
interface, subclasses should extend this class to obtain common generic functionality
accept(T)
- Method in
BoundPromise
accept(T)
- Method in
GparsPromise
accept(T)
- Method in
Promise
Assigns a value to an unfulfilled promise
accept(List<T>)
- Method in
PromiseList
accept(Map<K, V>)
- Method in
PromiseMap
accept(T)
- Method in
ReactorPromise
accept(T)
- Method in
SynchronousPromise
add(Promise<T>)
- Method in
PromiseList
Implementation of add that takes a promise, adding it to the list
addPromiseDecoratorLookupStrategy(PromiseDecoratorLookupStrategy)
- Method in
AbstractPromiseFactory
addPromiseDecoratorLookupStrategy(PromiseDecoratorLookupStrategy)
- Method in
PromiseFactory
Adds a PromiseDecoratorLookupStrategy.
applyDecorators(Closure<T>, List<PromiseDecorator>)
- Method in
AbstractPromiseFactory
applyDecorators(Closure<T>, List<PromiseDecorator>)
- Method in
PromiseFactory
Applies the registered decorators to the given closure
B
BoundPromise
- Class in
org.grails.async.factory
A bound promise is a promise which is already resolved and doesn't require any asynchronous processing to calculate the value
BoundPromise(T)
- Constructor in
BoundPromise
C
cancel(boolean)
- Method in
BoundPromise
cancel(boolean)
- Method in
GparsPromise
cancel(boolean)
- Method in
PromiseList
Synchronously obtains all the values from all the promises
cancel(boolean)
- Method in
PromiseMap
cancel(boolean)
- Method in
ReactorPromise
cancel(boolean)
- Method in
SynchronousPromise
containsKey(K)
- Method in
PromiseMap
@param o The key
createBoundPromise(T)
- Method in
AbstractPromiseFactory
createBoundPromise(T)
- Method in
GparsPromiseFactory
createBoundPromise(T)
- Method in
PromiseFactory
Creates a promise with a value pre-bound to it
createBoundPromise(T)
- Method in
Promises
@see PromiseFactory#createBoundPromise(java.lang.Object)
createBoundPromise(T)
- Method in
ReactorPromiseFactory
createPool(boolean, int)
- Method in
LoggingPoolFactory
createPromise(Map<K, V>)
- Method in
AbstractPromiseFactory
@see PromiseFactory#createPromise(java.util.Map)
createPromise(Closure<T>)
- Method in
GparsPromiseFactory
createPromise(List<Closure<T>>)
- Method in
PromiseFactory
Creates a promise from one or many closures
createPromise(Promise<T>)
- Method in
Promises
@see PromiseFactory#createPromise(grails.async.Promise[])
createPromise()
- Method in
ReactorPromiseFactory
createPromise(Closure<T>)
- Method in
SynchronousPromiseFactory
createPromiseInternal(Closure)
- Method in
AbstractPromiseFactory
createThreadNameMethod
- Field in
LoggingPoolFactory
D
decorate(Closure<D>)
- Method in
PromiseDecorator
Decorates the given closures, returning the decorated closure
DelegateAsync
- Annotation Type in
grails.async
An AST transformation that takes each method in the given class and adds a delegate method that returns a
Promise
and executes the method asynchronously.
DelegateAsyncTransactionalMethodTransformer
- Interface in
org.grails.async.transform.internal
Interface for a class that handles transforming async transactional methods
DelegateAsyncTransformation
- Class in
org.grails.async.transform.internal
Implementation of
DelegateAsync
transformation
DelegateAsyncUtils
- Class in
org.grails.async.transform.internal
Helps looking up the decorators
E
F
findDecorators()
- Method in
PromiseDecoratorLookupStrategy
G
get(long, TimeUnit)
- Method in
BoundPromise
get(long, TimeUnit)
- Method in
GparsPromise
get(long, TimeUnit)
- Method in
PromiseList
get(long, TimeUnit)
- Method in
PromiseMap
Synchronously return the populated map with all values obtained from promises used inside the populated map
get(long, TimeUnit)
- Method in
ReactorPromise
get(long, TimeUnit)
- Method in
SynchronousPromise
getAt(K)
- Method in
PromiseMap
Gets a promise instance for the given key
getDecorators()
- Method in
PromiseDecoratorProvider
@return A list of decorators
getPromiseDecorators(Object, Collection<PromiseDecorator>)
- Method in
DelegateAsyncUtils
Obtains all PromiseDecorator instances for the target and additional decorators supplied
getPromiseFactory()
- Method in
Promises
GparsPromise
- Class in
org.grails.async.factory.gpars
Implementation of Promise interface for Gpars
GparsPromise(PromiseFactory, Closure)
- Constructor in
GparsPromise
GparsPromiseFactory
- Class in
org.grails.async.factory.gpars
GPars implementation of the
PromiseFactory
interface
GparsPromiseFactory()
- Constructor in
GparsPromiseFactory
GROOVY_OBJECT_CLASS_NODE
- Field in
DelegateAsyncTransformation
H
I
initialized
- Field in
PromiseList
isCancelled()
- Method in
BoundPromise
isCancelled()
- Method in
GparsPromise
isCancelled()
- Method in
PromiseList
isCancelled()
- Method in
PromiseMap
isCancelled()
- Method in
ReactorPromise
isCancelled()
- Method in
SynchronousPromise
isDone()
- Method in
BoundPromise
isDone()
- Method in
GparsPromise
isDone()
- Method in
PromiseList
isDone()
- Method in
PromiseMap
isDone()
- Method in
ReactorPromise
isDone()
- Method in
SynchronousPromise
isEmpty()
- Method in
PromiseMap
@return Whether the map is empty
isGparsAvailable()
- Method in
GparsPromiseFactory
isReactorAvailable()
- Method in
ReactorPromiseFactory
J
K
L
leftShift(Closure)
- Method in
BoundPromise
leftShift(Closure)
- Method in
GparsPromise
leftShift(Promise)
- Method in
PromiseList
Add a promise to the promise list
leftShift(Closure)
- Method in
PromiseMap
leftShift(Closure)
- Method in
SynchronousPromise
LOG
- Field in
LoggingPoolFactory
LoggingPoolFactory
- Class in
org.grails.async.factory.gpars
A pool factory that logs error instead of printing them to standard err as is the default in GPars
lookupAsyncTransactionalMethodTransformer()
- Method in
DelegateAsyncTransformation
lookupStrategies
- Field in
AbstractPromiseFactory
M
N
O
OBJECT_CLASS_NODE
- Field in
DelegateAsyncTransformation
onComplete(Closure)
- Method in
BoundPromise
onComplete(Closure)
- Method in
GparsPromise
onComplete(List<Promise<T>>, Closure<?>)
- Method in
GparsPromiseFactory
onComplete(Closure)
- Method in
Promise
Execute the given closure when the promise completes
onComplete(List<Promise<T>>, Closure<?>)
- Method in
PromiseFactory
Executes the given callback when the list of promises completes
onComplete(Closure)
- Method in
PromiseList
Execute the given closure when all promises are complete
onComplete(Closure)
- Method in
PromiseMap
onComplete(List<Promise<T>>, Closure<?>)
- Method in
Promises
@see PromiseFactory#onComplete(java.util.List, groovy.lang.Closure)
onComplete(Closure)
- Method in
ReactorPromise
onComplete(List<Promise<T>>, Closure<?>)
- Method in
ReactorPromiseFactory
onComplete(Closure)
- Method in
SynchronousPromise
onComplete(List<Promise<T>>, Closure<?>)
- Method in
SynchronousPromiseFactory
onError(Closure)
- Method in
BoundPromise
onError(Closure)
- Method in
GparsPromise
onError(List<Promise<T>>, Closure<?>)
- Method in
GparsPromiseFactory
onError(Closure)
- Method in
Promise
Execute the given closure when an error occurs
onError(List<Promise<T>>, Closure<?>)
- Method in
PromiseFactory
Executes the given callback if an error occurs for the list of promises
onError(Closure)
- Method in
PromiseList
onError(Closure)
- Method in
PromiseMap
onError(List<Promise<T>>, Closure<?>)
- Method in
Promises
@see PromiseFactory#onError(java.util.List, groovy.lang.Closure)
onError(Closure)
- Method in
ReactorPromise
onError(List<Promise<T>>, Closure<?>)
- Method in
ReactorPromiseFactory
onError(Closure)
- Method in
SynchronousPromise
onError(List<Promise<T>>, Closure<?>)
- Method in
SynchronousPromiseFactory
P
Promise
- Interface in
grails.async
Encapsulates the notion of a Promise, a Future-like interface designed to easy integration of asynchronous functions
PromiseDecorator
- Interface in
grails.async.decorator
Decorates any function execution potentially wrapping an asynchronous function execution in new functionality.
PromiseDecoratorLookupStrategy
- Interface in
grails.async.decorator
A lookup strategy for PromiseDecorator instances
PromiseDecoratorProvider
- Interface in
grails.async.decorator
Interface for classes that provide promise decorators to implement
PromiseFactory
- Interface in
grails.async
An interface capable of creating
Promise
instances.
PromiseList
- Class in
grails.async
A list of promises
PromiseMap
- Class in
grails.async
A map-like structure for promises that allows waiting for all values in the map to be populated before executing a callback
PromiseMap(Map<K, V>)
- Constructor in
PromiseMap
Promises
- Class in
grails.async
Factory class for working with
Promise
instances
promises
- Field in
PromiseList
promises
- Field in
PromiseMap
promisesKeys
- Field in
PromiseMap
put(K, Closure)
- Method in
PromiseMap
Adds a promise for the given key
putAt(Integer, Closure)
- Method in
PromiseMap
Adds a promise for the given key
Q
R
ReactorPromise
- Class in
org.grails.async.factory.reactor
A Promise implementation for Reactor
ReactorPromise(Promise)
- Constructor in
ReactorPromise
ReactorPromiseFactory
- Class in
org.grails.async.factory.reactor
A
PromiseFactory
for Reactor
ReactorPromiseFactory(Environment)
- Constructor in
ReactorPromiseFactory
S
setPromiseFactory(PromiseFactory)
- Method in
Promises
size()
- Method in
PromiseMap
@return The size the map
SynchronousPromise
- Class in
org.grails.async.factory
A promise that executes synchronously, in the same thread as the creator
SynchronousPromise(Closure<T>)
- Constructor in
SynchronousPromise
SynchronousPromiseFactory
- Class in
org.grails.async.factory
A
PromiseFactory
implementation that constructors promises that execute synchronously.
T
task(Closure<T>)
- Method in
Promises
@see PromiseFactory#createPromise(groovy.lang.Closure[])
tasks(List<Closure<T>>)
- Method in
Promises
@see PromiseFactory#createPromise(groovy.lang.Closure[])
then(Closure)
- Method in
BoundPromise
then(Closure)
- Method in
GparsPromise
then(Closure)
- Method in
Promise
Same as #onComplete
then(Closure)
- Method in
PromiseList
then(Closure)
- Method in
PromiseMap
then(Closure)
- Method in
ReactorPromise
then(Closure)
- Method in
SynchronousPromise
toGparsPromises(List<Promise<T>>)
- Method in
GparsPromiseFactory
transformTransactionalMethod(ClassNode, ClassNode, MethodNode, ListExpression)
- Method in
DelegateAsyncTransactionalMethodTransformer
U
V
value()
- Method in
DelegateAsync
@default DelegateAsync
visit(ASTNode, SourceUnit)
- Method in
DelegateAsyncTransformation
W
waitAll(Promise<T>)
- Method in
AbstractPromiseFactory
@see PromiseFactory#waitAll(grails.async.Promise[])
waitAll(List<Promise<T>>, long, TimeUnit)
- Method in
GparsPromiseFactory
waitAll(List<Promise<T>>, long, TimeUnit)
- Method in
PromiseFactory
Synchronously waits for all promises to complete returning a list of values
waitAll(List<Promise<T>>, long, TimeUnit)
- Method in
Promises
@see PromiseFactory#waitAll(java.util.List)
waitAll(List<Promise<T>>, long, TimeUnit)
- Method in
ReactorPromiseFactory
waitAll(List<Promise<T>>, long, TimeUnit)
- Method in
SynchronousPromiseFactory
X
Y
Z
_
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
Overview
Package
Class
Deprecated
Index
Help
Frames
No Frames