protected class AbstractRemoteInvocationCommandCaller.RemoteInvocationCommandQueueImpl extends AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue implements RemoteInvocationCommandQueue
RemoteInvocationCommandQueue
.Constructor and Description |
---|
RemoteInvocationCommandQueueImpl(RemoteInvocationQueueSettings settings,
AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue parentQueue)
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 . |
addCall, cancel, commit, getCallQueue, getDefaultFailureCallback, getId, getIdInfo, getParentQueue, getSettings, getState, requireNoChildQueue, requireNoCurrentCall, requireOpen, setDefaultFailureCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, commit, getDefaultFailureCallback, getId, getState
setDefaultFailureCallback
public RemoteInvocationCommandQueueImpl(RemoteInvocationQueueSettings settings, AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue parentQueue)
settings
- - see AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue.getSettings()
.parentQueue
- - see AbstractRemoteInvocationCaller.AbstractRemoteInvocationQueue.getParentQueue()
.public <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 AbstractRemoteInvocationCommandCaller
callCommand
in interface RemoteInvocationCommandQueue
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.AttributeWriteDefaultFailureCallback.setDefaultFailureCallback(Consumer)
public <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 AbstractRemoteInvocationCommandCaller
callCommand
in interface RemoteInvocationCommandQueue
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
.Copyright © 2001–2016 mmm-Team. All rights reserved.