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
AbstractPromiseFactory() - Constructor in AbstractPromiseFactory
accept(T) - Method in BoundPromise
accept(T) - Method in FutureTaskPromise
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 SynchronousPromise
add(Promise<T>) - Method in PromiseList
Implementation of add that takes a promise, adding it to the list
addPromiseDecoratorLookupStrategy(grails.async.decorator.PromiseDecoratorLookupStrategy) - Method in AbstractPromiseFactory
addPromiseDecoratorLookupStrategy(grails.async.decorator.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
build() - Method in PromiseFactoryBuilder
Returns:
Builds the default PromiseFactory

C

CachedThreadPoolPromiseFactory - Class in org.grails.async.factory.future
A promise factory that uses an ExecutorService by default
CachedThreadPoolPromiseFactory.1 - Class in org.grails.async.factory.future
CachedThreadPoolPromiseFactory.1() - Constructor in CachedThreadPoolPromiseFactory.1
CachedThreadPoolPromiseFactory(int, long, java.util.concurrent.TimeUnit) - Constructor in CachedThreadPoolPromiseFactory
callable - Property in SynchronousPromise
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 SynchronousPromise
close() - Method in CachedThreadPoolPromiseFactory
containsKey(K) - Method in PromiseMap
Parameters:
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
createPool(boolean, int) - Method in LoggingPoolFactory
createPromise(Map<K, V>) - Method in AbstractPromiseFactory
See Also:
PromiseFactory#createPromise(java.util.Map)
createPromise(Closure<T>) - Method in CachedThreadPoolPromiseFactory
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
createPromise(Closure<T>) - Method in RxPromiseFactory
createPromise(Closure<T>) - Method in SynchronousPromiseFactory
createPromiseInternal(Closure<T>) - 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
DelegateAsyncUtils() - Constructor in DelegateAsyncUtils

E

executed - Property in SynchronousPromise
ExecutorPromiseFactory - Interface in org.grails.async.factory.future
Interface for classes that are both a PromiseFactory and an ExecutorService
executorService - Property in CachedThreadPoolPromiseFactory

F

findDecorators() - Method in PromiseDecoratorLookupStrategy
FutureTaskPromise - Class in org.grails.async.factory.future
A Promise that is a java.util.concurrent.FutureTask
FutureTaskPromise(grails.async.PromiseFactory, java.lang.Runnable, T) - Constructor in FutureTaskPromise

G

get(long, java.util.concurrent.TimeUnit) - Method in BoundPromise
get(long, java.util.concurrent.TimeUnit) - Method in FutureTaskPromise
get(long, java.util.concurrent.TimeUnit) - Method in GparsPromise
get(long, java.util.concurrent.TimeUnit) - Method in PromiseList
get(long, java.util.concurrent.TimeUnit) - Method in PromiseMap
Synchronously return the populated map with all values obtained from promises used inside the populated map
get(long, java.util.concurrent.TimeUnit) - Method in SynchronousPromise
getAt(K) - Method in PromiseMap
Gets a promise instance for the given key
getDecorators() - Method in PromiseDecoratorProvider
Returns:
A list of decorators
getPromiseDecorators(java.lang.Object, Collection<PromiseDecorator>) - Method in DelegateAsyncUtils
Obtains all PromiseDecorator instances for the target and additional decorators supplied
getPromiseFactory() - Method in Promises
GPARS_PRESENT - Property in GparsPromiseFactory
GparsPromise - Class in org.grails.async.factory.gpars
Implementation of Promise interface for Gpars
GparsPromise(grails.async.PromiseFactory, groovy.lang.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
internalPromise - Property in GparsPromise
isCancelled() - Method in BoundPromise
isCancelled() - Method in GparsPromise
isCancelled() - Method in PromiseList
isCancelled() - Method in PromiseMap
isCancelled() - Method in SynchronousPromise
isDone() - Method in BoundPromise
isDone() - Method in FutureTaskPromise
isDone() - Method in GparsPromise
isDone() - Method in PromiseList
isDone() - Method in PromiseMap
isDone() - Method in SynchronousPromise
isEmpty() - Method in PromiseMap
Returns:
Whether the map is empty
isGparsAvailable() - Method in GparsPromiseFactory

J

K

L

leftShift(groovy.lang.Closure) - Method in BoundPromise
leftShift(groovy.lang.Closure) - Method in GparsPromise
leftShift(grails.async.Promise) - Method in PromiseList
Add a promise to the promise list
leftShift(groovy.lang.Closure) - Method in PromiseMap
leftShift(groovy.lang.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
LoggingPoolFactory.1 - Class in org.grails.async.factory.gpars
LoggingPoolFactory.1.1 - Class in org.grails.async.factory.gpars
LoggingPoolFactory.1.1() - Constructor in LoggingPoolFactory.1.1
LoggingPoolFactory.1() - Constructor in LoggingPoolFactory.1
LoggingPoolFactory.2 - Class in org.grails.async.factory.gpars
LoggingPoolFactory.2() - Constructor in LoggingPoolFactory.2
LoggingPoolFactory() - Constructor in LoggingPoolFactory
lookupAsyncTransactionalMethodTransformer() - Method in DelegateAsyncTransformation
lookupStrategies - Field in AbstractPromiseFactory

M

N

newTaskFor(java.lang.Runnable, T) - Method in CachedThreadPoolPromiseFactory.1
newThread(java.lang.Runnable) - Method in LoggingPoolFactory.1

O

OBJECT_CLASS_NODE - Field in DelegateAsyncTransformation
onComplete(groovy.lang.Closure) - Method in BoundPromise
onComplete(List<Promise<T>>, Closure<?>) - Method in CachedThreadPoolPromiseFactory
onComplete(groovy.lang.Closure) - Method in FutureTaskPromise
onComplete(groovy.lang.Closure) - Method in GparsPromise
onComplete(List<Promise<T>>, Closure<?>) - Method in GparsPromiseFactory
onComplete(groovy.lang.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(groovy.lang.Closure) - Method in PromiseList
Execute the given closure when all promises are complete
onComplete(groovy.lang.Closure) - Method in PromiseMap
onComplete(List<Promise<T>>, Closure<?>) - Method in Promises
onComplete() - Method in RxPromise.1
onComplete(List<Promise<T>>, Closure<?>) - Method in RxPromiseFactory
onComplete(groovy.lang.Closure) - Method in SynchronousPromise
onComplete(List<Promise<T>>, Closure<?>) - Method in SynchronousPromiseFactory
onError(groovy.lang.Closure) - Method in BoundPromise
onError(List<Promise<T>>, Closure<?>) - Method in CachedThreadPoolPromiseFactory
onError(groovy.lang.Closure) - Method in FutureTaskPromise
onError(groovy.lang.Closure) - Method in GparsPromise
onError(List<Promise<T>>, Closure<?>) - Method in GparsPromiseFactory
onError(groovy.lang.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(groovy.lang.Closure) - Method in PromiseList
onError(groovy.lang.Closure) - Method in PromiseMap
onError(List<Promise<T>>, Closure<?>) - Method in Promises
onError(java.lang.Throwable) - Method in RxPromise.1
onError(List<Promise<T>>, Closure<?>) - Method in RxPromiseFactory
onError(groovy.lang.Closure) - Method in SynchronousPromise
onError(List<Promise<T>>, Closure<?>) - Method in SynchronousPromiseFactory
onNext(T) - Method in RxPromise.1
onSubscribe(io.reactivex.disposables.Disposable) - Method in RxPromise.1

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.
promiseFactory - Property in GparsPromise
promiseFactory - Property in Promises
PromiseFactoryBuilder - Class in org.grails.async.factory
Constructs the default promise factory
PromiseFactoryBuilder() - Constructor in PromiseFactoryBuilder
PromiseList - Class in grails.async
A list of promises
PromiseList() - Constructor in PromiseList
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<V>) - Method in PromiseMap
Adds a promise for the given key
putAt(java.lang.Integer, groovy.lang.Closure) - Method in PromiseMap
Adds a promise for the given key

Q

R

rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor) - Method in LoggingPoolFactory.2
RxPromise.1 - Class in org.grails.async.factory.rxjava3
RxPromise.1() - Constructor in RxPromise.1
RxPromiseFactory - Class in org.grails.async.factory.rxjava3
An RxJava PromiseFactory implementation
RxPromiseFactory() - Constructor in RxPromiseFactory

S

set(T) - Method in FutureTaskPromise
setException(java.lang.Throwable) - Method in FutureTaskPromise
setPromiseFactory(grails.async.PromiseFactory) - Method in Promises
size() - Method in PromiseMap
Returns:
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.
SynchronousPromiseFactory() - Constructor in SynchronousPromiseFactory

T

task(Closure<T>) - Method in Promises
tasks(List<Closure<T>>) - Method in Promises
then(groovy.lang.Closure) - Method in BoundPromise
then(groovy.lang.Closure) - Method in FutureTaskPromise
then(groovy.lang.Closure) - Method in GparsPromise
then(groovy.lang.Closure) - Method in Promise
Same as #onComplete
then(groovy.lang.Closure) - Method in PromiseList
then(groovy.lang.Closure) - Method in PromiseMap
then(groovy.lang.Closure) - Method in SynchronousPromise
toGparsPromises(List<Promise<T>>) - Method in GparsPromiseFactory
transformTransactionalMethod(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.ast.MethodNode, org.codehaus.groovy.ast.expr.ListExpression) - Method in DelegateAsyncTransactionalMethodTransformer

U

uncaughtException(java.lang.Thread, java.lang.Throwable) - Method in LoggingPoolFactory.1.1

V

value - Property in BoundPromise
value() - Method in DelegateAsync
value - Property in SynchronousPromise
visit(org.codehaus.groovy.ast.ASTNode, org.codehaus.groovy.control.SourceUnit) - Method in DelegateAsyncTransformation

W

waitAll(Promise<T>) - Method in AbstractPromiseFactory
See Also:
PromiseFactory#waitAll(grails.async.Promise[])
waitAll(List<Promise<T>>, long, java.util.concurrent.TimeUnit) - Method in CachedThreadPoolPromiseFactory
waitAll(List<Promise<T>>, long, java.util.concurrent.TimeUnit) - Method in GparsPromiseFactory
waitAll(List<Promise<T>>, long, java.util.concurrent.TimeUnit) - Method in PromiseFactory
Synchronously waits for all promises to complete returning a list of values
waitAll(List<Promise<T>>, long, java.util.concurrent.TimeUnit) - Method in Promises
waitAll(List<Promise<T>>, long, java.util.concurrent.TimeUnit) - Method in RxPromiseFactory
waitAll(List<Promise<T>>, long, java.util.concurrent.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 _