RESULT
- is the generic type of the method return-type.CALL
- is the generic type of the call
data.public class RemoteInvocationCallData<RESULT,CALL extends RemoteInvocationCall> extends Object
RemoteInvocationCall
.Modifier and Type | Field and Description |
---|---|
private CALL |
call |
private Consumer<Throwable> |
failureCallback
The callback to receive a potential service failure.
|
private Consumer<? extends RESULT> |
successCallback
The callback to receive the service result on success.
|
Constructor and Description |
---|
RemoteInvocationCallData(Consumer<? extends RESULT> successCallback,
Consumer<Throwable> failureCallback)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
CALL |
getCall() |
Consumer<Throwable> |
getFailureCallback() |
Consumer<? extends RESULT> |
getSuccessCallback() |
void |
setCall(CALL call) |
private final Consumer<? extends RESULT> successCallback
private final Consumer<Throwable> failureCallback
private CALL extends RemoteInvocationCall call
getCall()
public Consumer<? extends RESULT> getSuccessCallback()
public CALL getCall()
RemoteInvocationCommand
itself or GenericRemoteInvocationRpcCall
).Copyright © 2001–2016 mmm-Team. All rights reserved.