Interface RetentionLeaseSyncer


  • public interface RetentionLeaseSyncer
    A functional interface that represents a method for syncing retention leases to replica shards after a new retention lease is added on the primary.
    • Method Detail

      • sync

        void sync​(ShardId shardId,
                  RetentionLeases retentionLeases,
                  ActionListener<ReplicationResponse> listener)
        Represents a method that when invoked syncs retention leases to replica shards after a new retention lease is added on the primary. The specified listener is invoked when the syncing completes with success or failure.
        Parameters:
        shardId - the shard ID
        retentionLeases - the retention leases to sync
        listener - the callback when sync completes