public class QueryServiceMethod extends ServiceMethod
ServiceMethod.DataDescription| Constructor and Description | 
|---|
QueryServiceMethod(ServiceMethodDescription serviceMethodDescription,
                  ServiceDescription serviceDescription)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
asyncExecImpl(Map<String,Object> parameters,
             java.util.function.Consumer<Map<String,Object>> callback,
             java.util.function.Consumer<Exception> errorCallback)
Asynchronous implementation of the service method. 
 | 
executeAsync, executeSync, getArgumentMap, getArguments, getDescription, getName, getResultMap, getResults, syncExecImpl, toStringpublic QueryServiceMethod(ServiceMethodDescription serviceMethodDescription, ServiceDescription serviceDescription)
public void asyncExecImpl(Map<String,Object> parameters, java.util.function.Consumer<Map<String,Object>> callback, java.util.function.Consumer<Exception> errorCallback)
ServiceMethodThe implementation should call only one callback, the callback or the errorCallback. If the method throws an exception it will be sent to the errorCallbak (i.e. you can let exceptions go through) in which case no callback must be used.
asyncExecImpl in class ServiceMethodparameters - the parameters for the method, already type checkedcallback - the result callback, for success; not nullerrorCallback - the error callback, for failures; can't be nullCopyright © 2015. All rights reserved.