protected static class TransportWriteAction.WriteReplicaResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>> extends TransportReplicationAction.ReplicaResult
| Modifier and Type | Field and Description |
|---|---|
Translog.Location |
location |
| Constructor and Description |
|---|
WriteReplicaResult(ReplicaRequest request,
Translog.Location location,
java.lang.Exception operationFailure,
IndexShard replica,
org.apache.logging.log4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Exception ex)
Called on failure if a post action failed.
|
void |
onSuccess(boolean forcedRefresh)
Called on successful processing of all post write actions
|
void |
respond(ActionListener<TransportResponse.Empty> listener) |
protected void |
respondIfPossible(java.lang.Exception ex)
Respond if the refresh has occurred and the listener is ready.
|
public final Translog.Location location
public WriteReplicaResult(ReplicaRequest request, @Nullable Translog.Location location, @Nullable java.lang.Exception operationFailure, IndexShard replica, org.apache.logging.log4j.Logger logger)
public void respond(ActionListener<TransportResponse.Empty> listener)
respond in class TransportReplicationAction.ReplicaResultprotected void respondIfPossible(java.lang.Exception ex)
this.public void onFailure(java.lang.Exception ex)
public void onSuccess(boolean forcedRefresh)
forcedRefresh - true iff this write has caused a refresh