This may mean that the service has access to its own thread pool, or that it can delegate work to a remote node, or act in some other way to reduce the load on the Asynchronous Services implementation when making an asynchronous call.
| Modifier and Type | Method and Description |
|---|---|
| public Promise | Returns: A Promise representing the asynchronous result, ornull
if this method cannot be asynchronously invoked.The method to be asynchronously invoked. m, Object[] The arguments to be used to invoke the method. args)Invoke the specified method as an asynchronous task with the specified arguments. |
| public boolean | Returns: true if the asynchronous execution request has been
accepted, or false if this method cannot be
asynchronously invoked by the AsyncDelegate.The method to be asynchronously invoked. m, Object[] The arguments to be used to invoke the method. args)Invoke the specified method as a "fire-and-forget" asynchronous task with the specified arguments. |
| async | back to summary |
|---|---|
| public Promise Invoke the specified method as an asynchronous task with the specified arguments. This method can be used by clients, or the Async Service, to optimize Asynchronous execution of methods. When called, this method should invoke the supplied method using the supplied arguments asynchronously, returning a Promise that can be used to access the result.
If the method cannot be executed asynchronously by this method then
| |
| execute | back to summary |
|---|---|
| public boolean execute(Method m, Object[] args) throws Exception Invoke the specified method as a "fire-and-forget" asynchronous task with the specified arguments. This method can be used by clients, or the Async Service, to optimize Asynchronous execution of methods.
When called, this method should invoke the specified method using the
specified arguments asynchronously. This method differs from
If the method cannot be executed asynchronously by this method then
| |