public interface AbstractRemoteInvocationCommandCaller
RemoteInvocationCommand from the client.| Modifier and Type | Method and Description |
|---|---|
<RESULT extends Serializable> |
callCommand(RemoteInvocationCommand<RESULT> command,
Consumer<? extends RESULT> successCallback)
Same as
callCommand(RemoteInvocationCommand, Consumer) but using the
default
failure callback. |
<RESULT extends Serializable> |
callCommand(RemoteInvocationCommand<RESULT> command,
Consumer<? extends RESULT> successCallback,
Consumer<Throwable> failureCallback)
This method invokes the given
RemoteInvocationCommand on a
RemoteInvocationService. |
<RESULT extends Serializable> void callCommand(RemoteInvocationCommand<RESULT> command, Consumer<? extends RESULT> successCallback, Consumer<Throwable> failureCallback)
RemoteInvocationCommand on a
RemoteInvocationService.RESULT - 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.<RESULT extends Serializable> void callCommand(RemoteInvocationCommand<RESULT> command, Consumer<? extends RESULT> successCallback)
callCommand(RemoteInvocationCommand, Consumer) but using the
default
failure callback.RESULT - 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.Copyright © 2001–2016 mmm-Team. All rights reserved.