Class FanoutReplicationProxy<ReplicaRequest extends ReplicationRequest<ReplicaRequest>>
java.lang.Object
org.opensearch.action.support.replication.ReplicationProxy<ReplicaRequest>
org.opensearch.action.support.replication.FanoutReplicationProxy<ReplicaRequest>
public class FanoutReplicationProxy<ReplicaRequest extends ReplicationRequest<ReplicaRequest>>
extends ReplicationProxy<ReplicaRequest>
This implementation of
ReplicationProxy
fans out the replication request to current shard routing if
it is not the primary and has replication mode as ReplicationMode.FULL_REPLICATION
.- Opensearch.internal:
-
Field Summary
Fields inherited from class org.opensearch.action.support.replication.ReplicationProxy
fullReplicationProxy
-
Constructor Summary
ConstructorDescriptionFanoutReplicationProxy
(ReplicationOperation.Replicas<ReplicaRequest> replicasProxy) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
performOnReplicaProxy
(ReplicationProxyRequest<ReplicaRequest> proxyRequest, ReplicationMode replicationMode, BiConsumer<Consumer<org.opensearch.core.action.ActionListener<ReplicationOperation.ReplicaResponse>>, ReplicationProxyRequest<ReplicaRequest>> performOnReplicaConsumer) The implementor can decide theConsumer<ActionListener<ReplicationOperation.ReplicaResponse>>
basis the proxyRequest and replicationMode.Methods inherited from class org.opensearch.action.support.replication.ReplicationProxy
getReplicasProxyConsumer
-
Constructor Details
-
FanoutReplicationProxy
-
-
Method Details
-
performOnReplicaProxy
protected void performOnReplicaProxy(ReplicationProxyRequest<ReplicaRequest> proxyRequest, ReplicationMode replicationMode, BiConsumer<Consumer<org.opensearch.core.action.ActionListener<ReplicationOperation.ReplicaResponse>>, ReplicationProxyRequest<ReplicaRequest>> performOnReplicaConsumer) Description copied from class:ReplicationProxy
The implementor can decide theConsumer<ActionListener<ReplicationOperation.ReplicaResponse>>
basis the proxyRequest and replicationMode. This will ultimately make the calls to replica.- Specified by:
performOnReplicaProxy
in classReplicationProxy<ReplicaRequest extends ReplicationRequest<ReplicaRequest>>
- Parameters:
proxyRequest
- replication proxy requestreplicationMode
- replication modeperformOnReplicaConsumer
- performOnReplicasProxy
-