@java.lang.SuppressWarnings("unused") public interface ServiceCallAsync extends ServiceCall
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
call() Call the service asynchronously, ignoring the result. |
|
public java.util.concurrent.Future<java.util.Map<java.lang.String, java.lang.Object>> |
callFuture() Call the service asynchronously, and get a java.util.concurrent.Future object back so you can wait for the service to complete and get the result. |
|
public ServiceCallAsync |
distribute(boolean dist) If true the service call will be run distributed and may run on a different member of the cluster. |
|
public java.util.concurrent.Callable<java.util.Map<java.lang.String, java.lang.Object>> |
getCallable() Get a Callable object to do this service call through an ExecutorService of your choice. |
|
public java.lang.Runnable |
getRunnable() Get a Runnable object to do this service call through an ExecutorService or other runner of your choice. |
|
public ServiceCallAsync |
name(java.lang.String serviceName) Name of the service to run. |
|
public ServiceCallAsync |
name(java.lang.String verb, java.lang.String noun) |
|
public ServiceCallAsync |
name(java.lang.String path, java.lang.String verb, java.lang.String noun) |
|
public ServiceCallAsync |
parameter(java.lang.String name, java.lang.Object value) Single name, value pairs to put in the context (in parameters) passed to the service. |
|
public ServiceCallAsync |
parameters(java.util.Map<java.lang.String, java.lang.Object> context) Map of name, value pairs that make up the context (in parameters) passed to the service. |
Methods inherited from class | Name |
---|---|
interface ServiceCall |
getCurrentParameters, getServiceName |
Call the service asynchronously, ignoring the result. This effectively calls the service through a java.lang.Runnable implementation.
Call the service asynchronously, and get a java.util.concurrent.Future object back so you can wait for the service to complete and get the result. This is useful for running a number of service simultaneously and then getting all of the results back which will reduce the total running time from the sum of the time to run each service to just the time the longest service takes to run. This effectively calls the service through a java.util.concurrent.Callable implementation.
If true the service call will be run distributed and may run on a different member of the cluster. Parameter entries MUST be java.io.Serializable (or java.io.Externalizable). If false it will be run local only (default).
Get a Callable object to do this service call through an ExecutorService of your choice.
Get a Runnable object to do this service call through an ExecutorService or other runner of your choice.
Name of the service to run. The combined service name, like: "${path}.${verb}${noun}". To explicitly separate the verb and noun put a hash (#) between them, like: "${path}.${verb}#${noun}" (this is useful for calling the implicit entity CrUD services where verb is create, update, or delete and noun is the name of the entity).
Single name, value pairs to put in the context (in parameters) passed to the service.
Map of name, value pairs that make up the context (in parameters) passed to the service.