T
- Target type of the Invocationpublic abstract class Invocation<T> extends BaseInvocation implements OperationResponseHandler
Operation
.
Using the InvocationFuture
, one can wait for the completion of an invocation.
Modifier and Type | Field and Description |
---|---|
long |
firstInvocationTimeMillis
The first time this invocation got executed.
|
Operation |
op
The
Operation this invocation is evaluating. |
backupsAcksReceived
Modifier and Type | Method and Description |
---|---|
protected void |
complete(Object value) |
protected void |
completeExceptionally(Throwable t) |
InvocationFuture |
invoke() |
InvocationFuture |
invokeAsync() |
protected void |
notifyThrowable(Throwable cause,
int expectedBackups) |
void |
sendResponse(Operation op,
Object response)
Sends a response.
|
protected boolean |
shouldCompleteWithoutBackups() |
protected boolean |
shouldFailOnIndeterminateOperationState() |
String |
toString() |
detectAndHandleBackupTimeout, notifyBackupComplete, notifyResponse
public final long firstInvocationTimeMillis
public void sendResponse(Operation op, Object response)
OperationResponseHandler
sendResponse
in interface OperationResponseHandler
op
- the operation that got executed.response
- the response of the operation that got executed.public final InvocationFuture invoke()
public final InvocationFuture invokeAsync()
protected boolean shouldFailOnIndeterminateOperationState()
shouldFailOnIndeterminateOperationState
in class BaseInvocation
protected void notifyThrowable(Throwable cause, int expectedBackups)
protected boolean shouldCompleteWithoutBackups()
shouldCompleteWithoutBackups
in class BaseInvocation
protected void complete(Object value)
complete
in class BaseInvocation
protected void completeExceptionally(Throwable t)
completeExceptionally
in class BaseInvocation
Copyright © 2019 Hazelcast, Inc.. All rights reserved.