Module org.elasticsearch.server
Class TransportShardRefreshAction.UnpromotableReplicasRefreshProxy
java.lang.Object
TransportReplicationAction<BasicReplicationRequest,ShardRefreshReplicaRequest,ReplicationResponse>.ReplicasProxy
org.elasticsearch.action.admin.indices.refresh.TransportShardRefreshAction.UnpromotableReplicasRefreshProxy
- All Implemented Interfaces:
ReplicationOperation.Replicas<ShardRefreshReplicaRequest>
- Enclosing class:
- TransportShardRefreshAction
protected class TransportShardRefreshAction.UnpromotableReplicasRefreshProxy
extends TransportReplicationAction<BasicReplicationRequest,ShardRefreshReplicaRequest,ReplicationResponse>.ReplicasProxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onPrimaryOperationComplete
(ShardRefreshReplicaRequest replicaRequest, IndexShardRoutingTable indexShardRoutingTable, ActionListener<Void> listener) Optional custom logic to execute when the primary operation is complete, before sending the replica requests.Methods inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction.ReplicasProxy
failShardIfNeeded, markShardCopyAsStaleIfNeeded, performOn
-
Constructor Details
-
UnpromotableReplicasRefreshProxy
protected UnpromotableReplicasRefreshProxy()
-
-
Method Details
-
onPrimaryOperationComplete
public void onPrimaryOperationComplete(ShardRefreshReplicaRequest replicaRequest, IndexShardRoutingTable indexShardRoutingTable, ActionListener<Void> listener) Description copied from interface:ReplicationOperation.Replicas
Optional custom logic to execute when the primary operation is complete, before sending the replica requests.- Parameters:
replicaRequest
- the operation that will be performed on replicasindexShardRoutingTable
- the replication's group index shard routing tablelistener
- callback for handling the response or failure
-