public final class Async
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <R> Promise<R> |
function(Functions.Func<R> function)
Invokes zero argument function asynchronously.
|
static <A1,R> Promise<R> |
function(Functions.Func1<A1,R> function,
A1 arg1)
Invokes one argument function asynchronously.
|
static <A1,A2,R> Promise<R> |
function(Functions.Func2<A1,A2,R> function,
A1 arg1,
A2 arg2)
Invokes two argument function asynchronously.
|
static <A1,A2,A3,R> |
function(Functions.Func3<A1,A2,A3,R> function,
A1 arg1,
A2 arg2,
A3 arg3)
Invokes three argument function asynchronously.
|
static <A1,A2,A3,A4,R> |
function(Functions.Func4<A1,A2,A3,A4,R> function,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4)
Invokes four argument function asynchronously.
|
static <A1,A2,A3,A4,A5,R> |
function(Functions.Func5<A1,A2,A3,A4,A5,R> function,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5)
Invokes five argument function asynchronously.
|
static <A1,A2,A3,A4,A5,A6,R> |
function(Functions.Func6<A1,A2,A3,A4,A5,A6,R> function,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5,
A6 arg6)
Invokes six argument function asynchronously.
|
static Promise<java.lang.Void> |
procedure(Functions.Proc procedure)
Invokes zero argument procedure asynchronously.
|
static <A1> Promise<java.lang.Void> |
procedure(Functions.Proc1<A1> procedure,
A1 arg1)
Invokes one argument procedure asynchronously.
|
static <A1,A2> Promise<java.lang.Void> |
procedure(Functions.Proc2<A1,A2> procedure,
A1 arg1,
A2 arg2)
Invokes two argument procedure asynchronously.
|
static <A1,A2,A3> Promise<java.lang.Void> |
procedure(Functions.Proc3<A1,A2,A3> procedure,
A1 arg1,
A2 arg2,
A3 arg3)
Invokes three argument procedure asynchronously.
|
static <A1,A2,A3,A4> |
procedure(Functions.Proc4<A1,A2,A3,A4> procedure,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4)
Invokes four argument procedure asynchronously.
|
static <A1,A2,A3,A4,A5> |
procedure(Functions.Proc5<A1,A2,A3,A4,A5> procedure,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5)
Invokes five argument procedure asynchronously.
|
static <A1,A2,A3,A4,A5,A6> |
procedure(Functions.Proc6<A1,A2,A3,A4,A5,A6> procedure,
A1 arg1,
A2 arg2,
A3 arg3,
A4 arg4,
A5 arg5,
A6 arg6)
Invokes six argument procedure asynchronously.
|
static <R> Promise<R> |
retry(RetryOptions options,
Functions.Func<Promise<R>> fn)
Invokes function retrying in case of failures according to retry options.
|
public static <R> Promise<R> function(Functions.Func<R> function)
function
- Function to execute asynchronouslypublic static <A1,R> Promise<R> function(Functions.Func1<A1,R> function, A1 arg1)
function
- Function to execute asynchronouslyarg1
- first function argumentpublic static <A1,A2,R> Promise<R> function(Functions.Func2<A1,A2,R> function, A1 arg1, A2 arg2)
function
- Function to execute asynchronouslyarg1
- first function argumentarg2
- second function argumentpublic static <A1,A2,A3,R> Promise<R> function(Functions.Func3<A1,A2,A3,R> function, A1 arg1, A2 arg2, A3 arg3)
function
- Function to execute asynchronouslyarg1
- first function argumentarg2
- second function argumentarg3
- third function argumentpublic static <A1,A2,A3,A4,R> Promise<R> function(Functions.Func4<A1,A2,A3,A4,R> function, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
function
- Function to execute asynchronouslyarg1
- first function argumentarg2
- second function argumentarg3
- third function argumentarg4
- forth function argumentpublic static <A1,A2,A3,A4,A5,R> Promise<R> function(Functions.Func5<A1,A2,A3,A4,A5,R> function, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
function
- Function to execute asynchronouslyarg1
- first function argumentarg2
- second function argumentarg3
- third function argumentarg4
- forth function argumentarg5
- fifth function argumentpublic static <A1,A2,A3,A4,A5,A6,R> Promise<R> function(Functions.Func6<A1,A2,A3,A4,A5,A6,R> function, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
function
- Function to execute asynchronouslyarg1
- first function argumentarg2
- second function argumentarg3
- third function argumentarg4
- forth function argumentarg5
- fifth function argumentarg6
- sixth function argumentpublic static Promise<java.lang.Void> procedure(Functions.Proc procedure)
procedure
- Procedure to execute asynchronouslypublic static <A1> Promise<java.lang.Void> procedure(Functions.Proc1<A1> procedure, A1 arg1)
procedure
- Procedure to execute asynchronouslyarg1
- first procedure argumentpublic static <A1,A2> Promise<java.lang.Void> procedure(Functions.Proc2<A1,A2> procedure, A1 arg1, A2 arg2)
procedure
- Procedure to execute asynchronouslyarg1
- first procedure argumentarg2
- second procedure argumentpublic static <A1,A2,A3> Promise<java.lang.Void> procedure(Functions.Proc3<A1,A2,A3> procedure, A1 arg1, A2 arg2, A3 arg3)
procedure
- Procedure to execute asynchronouslyarg1
- first procedure argumentarg2
- second procedure argumentarg3
- third procedure argumentpublic static <A1,A2,A3,A4> Promise<java.lang.Void> procedure(Functions.Proc4<A1,A2,A3,A4> procedure, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
procedure
- Procedure to execute asynchronouslyarg1
- first procedure argumentarg2
- second procedure argumentarg3
- third procedure argumentarg4
- forth procedure argumentpublic static <A1,A2,A3,A4,A5> Promise<java.lang.Void> procedure(Functions.Proc5<A1,A2,A3,A4,A5> procedure, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
procedure
- Procedure to execute asynchronouslyarg1
- first procedure argumentarg2
- second procedure argumentarg3
- third procedure argumentarg4
- forth procedure argumentarg5
- fifth procedure argumentpublic static <A1,A2,A3,A4,A5,A6> Promise<java.lang.Void> procedure(Functions.Proc6<A1,A2,A3,A4,A5,A6> procedure, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
procedure
- Procedure to execute asynchronouslyarg1
- first procedure argumentarg2
- second procedure argumentarg3
- third procedure argumentarg4
- forth procedure argumentarg5
- fifth procedure argumentarg6
- sixth procedure argumentpublic static <R> Promise<R> retry(RetryOptions options, Functions.Func<Promise<R>> fn)
Workflow.retry(RetryOptions, Functions.Func)
for synchronous functions.options
- retry options that specify retry policyfn
- function to invoke and retry