public abstract class AbstractRemoteInvocationCommandCaller extends AbstractRemoteInvocationCaller<RemoteInvocationCommandQueue,RemoteInvocationCommand<?>,GenericRemoteInvocationCommandTransactionalCalls,GenericRemoteInvocationCommandRequest> implements RemoteInvocationCommandCaller
RemoteInvocationCommandCaller.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractRemoteInvocationCommandCaller.RemoteInvocationCommandQueueImpl
This is the implementation of
RemoteInvocationCommandQueue. |
AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue, AbstractRemoteInvocationCaller.RequestBuilder, AbstractRemoteInvocationCaller.TransactionalCallBuilder| Constructor and Description |
|---|
AbstractRemoteInvocationCommandCaller()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<RESULT extends Serializable> |
callCommand(RemoteInvocationCommand<RESULT> command,
Consumer<? extends RESULT> successCallback)
|
<RESULT extends Serializable> |
callCommand(RemoteInvocationCommand<RESULT> command,
Consumer<? extends RESULT> successCallback,
Consumer<Throwable> failureCallback)
This method invokes the given
RemoteInvocationCommand on a
RemoteInvocationService. |
protected RemoteInvocationCommandQueue |
createQueue(RemoteInvocationQueueSettings settings,
AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue parentQueue) |
protected GenericRemoteInvocationCommandTransactionalCalls |
createRemoteInvocationTransactionalCalls(List<RemoteInvocationCommand<?>> calls) |
protected GenericRemoteInvocationCommandRequest |
createRequest(int requestId,
CsrfToken token,
List<GenericRemoteInvocationCommandTransactionalCalls> transactionalCalls)
Creates a new
GenericRemoteInvocationRequest instance. |
createQueue, getCurrentQueue, getDefaultFailureCallback, getTransactionMode, getXsrfToken, handleFailure, handleResponse, newQueue, newQueue, newQueue, newQueueForAutoCommit, nextRequestId, performRequest, performRequest, requireCurrentQueue, setDefaultFailureCallback, setTransactionModecreateLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentQueue, newQueue, newQueue, newQueuepublic AbstractRemoteInvocationCommandCaller()
public <RESULT extends Serializable> void callCommand(RemoteInvocationCommand<RESULT> command, Consumer<? extends RESULT> successCallback)
AbstractRemoteInvocationCommandCaller.callCommand(RemoteInvocationCommand, Consumer) but using the
default
failure callback.callCommand in interface AbstractRemoteInvocationCommandCallerRESULT - is the generic type of returnType.command - is the RemoteInvocationCommand to invoke.successCallback - is the Consumer that is asynchronously invoked on success with when the result of the invoked service Method
has been received. The generic type may extend result if it is generic itself. E.g. your service
might return List<String> but you can only supply List.class as
return type.public <RESULT extends Serializable> void callCommand(RemoteInvocationCommand<RESULT> command, Consumer<? extends RESULT> successCallback, Consumer<Throwable> failureCallback)
RemoteInvocationCommand on a
RemoteInvocationService.callCommand in interface AbstractRemoteInvocationCommandCallerRESULT - is the generic type of returnType.command - is the RemoteInvocationCommand to invoke.successCallback - is the Consumer that is asynchronously invoked on success with when the result of the invoked service Method
has been received. The generic type may extend result if it is generic itself. E.g. your service
might return List<String> but you can only supply List.class as
return type.failureCallback - is the Consumer that is asynchronously invoked on failure with the Throwable that occurred when calling the invoked service
Method.protected RemoteInvocationCommandQueue createQueue(RemoteInvocationQueueSettings settings, AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue parentQueue)
createQueue in class AbstractRemoteInvocationCaller<RemoteInvocationCommandQueue,RemoteInvocationCommand<?>,GenericRemoteInvocationCommandTransactionalCalls,GenericRemoteInvocationCommandRequest>settings - are the RemoteInvocationQueueSettings.parentQueue - is the parent queue.AbstractRemoteInvocationCaller.createQueue(RemoteInvocationQueueSettings)protected GenericRemoteInvocationCommandTransactionalCalls createRemoteInvocationTransactionalCalls(List<RemoteInvocationCommand<?>> calls)
createRemoteInvocationTransactionalCalls in class AbstractRemoteInvocationCaller<RemoteInvocationCommandQueue,RemoteInvocationCommand<?>,GenericRemoteInvocationCommandTransactionalCalls,GenericRemoteInvocationCommandRequest>calls - is the List with the <CALL>s.calls.protected GenericRemoteInvocationCommandRequest createRequest(int requestId, CsrfToken token, List<GenericRemoteInvocationCommandTransactionalCalls> transactionalCalls)
GenericRemoteInvocationRequest instance.createRequest in class AbstractRemoteInvocationCaller<RemoteInvocationCommandQueue,RemoteInvocationCommand<?>,GenericRemoteInvocationCommandTransactionalCalls,GenericRemoteInvocationCommandRequest>requestId - - see GenericRemoteInvocationRequest.getRequestId().token - - see GenericRemoteInvocationRequest.getXsrfToken().transactionalCalls - - see GenericRemoteInvocationRequest.getTransactionalCalls().Copyright © 2001–2016 mmm-Team. All rights reserved.