Package org.elasticsearch.index.seqno
Interface RetentionLeaseSyncer
-
public interface RetentionLeaseSyncerA functional interface that represents a method for syncing retention leases to replica shards after a new retention lease is added on the primary.
-
-
Field Summary
Fields Modifier and Type Field Description static RetentionLeaseSyncerEMPTY
-
Method Summary
Modifier and Type Method Description voidbackgroundSync(ShardId shardId, RetentionLeases retentionLeases)voidsync(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.
-
-
-
Field Detail
-
EMPTY
static final RetentionLeaseSyncer EMPTY
-
-
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 IDretentionLeases- the retention leases to synclistener- the callback when sync completes
-
backgroundSync
void backgroundSync(ShardId shardId, RetentionLeases retentionLeases)
-
-