Package org.elasticsearch.index.seqno
Class RetentionLeaseSyncer
java.lang.Object
org.elasticsearch.index.seqno.RetentionLeaseSyncer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Represents an action that is invoked periodically to sync retention leases to replica shards after some retention lease has been renewed or expired.static interface
Represents an action that is invoked to sync retention leases to replica shards after a retention lease is added or removed on the primary. -
Field Summary
-
Constructor Summary
ConstructorDescriptionRetentionLeaseSyncer(RetentionLeaseSyncAction syncAction, RetentionLeaseBackgroundSyncAction backgroundSyncAction)
RetentionLeaseSyncer(RetentionLeaseSyncer.SyncAction syncAction, RetentionLeaseSyncer.BackgroundSyncAction backgroundSyncAction)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backgroundSync(ShardId shardId, String primaryAllocationId, long primaryTerm, RetentionLeases retentionLeases)
void
sync(ShardId shardId, String primaryAllocationId, long primaryTerm, RetentionLeases retentionLeases, ActionListener<ReplicationResponse> listener)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RetentionLeaseSyncer
@Inject public RetentionLeaseSyncer(RetentionLeaseSyncAction syncAction, RetentionLeaseBackgroundSyncAction backgroundSyncAction) -
RetentionLeaseSyncer
public RetentionLeaseSyncer(RetentionLeaseSyncer.SyncAction syncAction, RetentionLeaseSyncer.BackgroundSyncAction backgroundSyncAction)
-
-
Method Details
-
sync
public void sync(ShardId shardId, String primaryAllocationId, long primaryTerm, RetentionLeases retentionLeases, ActionListener<ReplicationResponse> listener) -
backgroundSync
public void backgroundSync(ShardId shardId, String primaryAllocationId, long primaryTerm, RetentionLeases retentionLeases)
-