Class PendingReplicationActions

java.lang.Object
org.elasticsearch.action.support.replication.PendingReplicationActions
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, java.util.function.Consumer<ReplicationGroup>, Releasable

public class PendingReplicationActions
extends java.lang.Object
implements java.util.function.Consumer<ReplicationGroup>, Releasable
  • Constructor Summary

    Constructors
    Constructor Description
    PendingReplicationActions​(ShardId shardId, ThreadPool threadPool)  
  • Method Summary

    Modifier and Type Method Description
    void accept​(ReplicationGroup replicationGroup)  
    void addPendingAction​(java.lang.String allocationId, RetryableAction<?> replicationAction)  
    void close()  
    void removeReplicationAction​(java.lang.String allocationId, RetryableAction<?> action)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Constructor Details

    • PendingReplicationActions

      public PendingReplicationActions​(ShardId shardId, ThreadPool threadPool)
  • Method Details

    • addPendingAction

      public void addPendingAction​(java.lang.String allocationId, RetryableAction<?> replicationAction)
    • removeReplicationAction

      public void removeReplicationAction​(java.lang.String allocationId, RetryableAction<?> action)
    • accept

      public void accept​(ReplicationGroup replicationGroup)
      Specified by:
      accept in interface java.util.function.Consumer<ReplicationGroup>
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in interface Releasable