class GormAsyncStaticApi<D> extends java.lang.Object implements grails.async.decorator.PromiseDecoratorProvider
Transforms the GormStaticApi into an asynchronous API
Modifiers | Name | Description |
---|---|---|
private java.util.List<grails.async.decorator.PromiseDecorator> |
decorators |
Wraps each promise in a new persistence session |
private GormStaticOperations<D> |
staticApi |
Type | Name and description |
---|---|
GormStaticOperations<D> |
staticApi |
Constructor and description |
---|
GormAsyncStaticApi
(GormStaticApi<D> staticApi) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.List<grails.async.decorator.PromiseDecorator> |
getDecorators() |
<T> |
grails.async.Promise<T> |
task(groovy.lang.Closure<T> callable) Used to perform a sequence of operations asynchronously |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Wraps each promise in a new persistence session
Used to perform a sequence of operations asynchronously
callable
- The callableGroovy Documentation