@groovy.transform.CompileStatic class CachedThreadPoolPromiseFactory extends AbstractPromiseFactory
A promise factory that uses an ExecutorService by default
Fields inherited from class | Fields |
---|---|
class AbstractPromiseFactory |
lookupStrategies |
Type | Name and description |
---|---|
java.util.concurrent.ExecutorService |
executorService |
Constructor and description |
---|
CachedThreadPoolPromiseFactory
(int maxPoolSize = Integer.MAX_VALUE, long timeout = 60L, java.util.concurrent.TimeUnit unit = TimeUnit.SECONDS) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
close() |
<T> |
Promise<T> |
createPromise(java.lang.Class<T> returnType) |
|
Promise<java.lang.Object> |
createPromise() |
<T> |
Promise<T> |
createPromise(groovy.lang.Closure<T>... closures) |
<T> |
Promise<java.util.List<T>> |
onComplete(java.util.List<Promise<T>> promises, groovy.lang.Closure<?> callable) |
<T> |
Promise<java.util.List<T>> |
onError(java.util.List<Promise<T>> promises, groovy.lang.Closure<?> callable) |
<T> |
java.util.List<T> |
waitAll(java.util.List<Promise<T>> promises) |
<T> |
java.util.List<T> |
waitAll(java.util.List<Promise<T>> promises, long timeout, java.util.concurrent.TimeUnit units) |
Methods inherited from class | Name |
---|---|
class AbstractPromiseFactory |
addPromiseDecoratorLookupStrategy, applyDecorators, createBoundPromise, createPromise, createPromise, createPromise, createPromise, createPromise, createPromise, createPromiseInternal, waitAll |