public interface RemoteInvocationCommandQueue extends AbstractRemoteInvocationCommandCaller, RemoteInvocationQueue
remote invocation queue based on
RemoteInvocationCommandCaller.| 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. |
cancel, commit, getDefaultFailureCallback, getId, getStatesetDefaultFailureCallback<RESULT extends Serializable> void callCommand(RemoteInvocationCommand<RESULT> command, Consumer<? extends RESULT> successCallback)
AbstractRemoteInvocationCommandCaller.callCommand(RemoteInvocationCommand, Consumer) but using the
default
failure callback.
committed. A
queue allows multiple invocations of this method in order to collect remote invocations that shall be
send to the server within the same technical request.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.AttributeWriteDefaultFailureCallback.setDefaultFailureCallback(Consumer)<RESULT extends Serializable> void callCommand(RemoteInvocationCommand<RESULT> command, Consumer<? extends RESULT> successCallback, Consumer<Throwable> failureCallback)
RemoteInvocationCommand on a
RemoteInvocationService.
committed. A
queue allows multiple invocations of this method in order to collect remote invocations that shall be
send to the server within the same technical request.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.Copyright © 2001–2016 mmm-Team. All rights reserved.