Module org.elasticsearch.server
Package org.elasticsearch.snapshots
Interface SnapshotDeleteListener
public interface SnapshotDeleteListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDone()
Invoked once the snapshots have been fully deleted from the repository, including all async cleanup operations, indicating that listeners waiting for the end of the deletion can now be notified.void
Invoked if writing updatedRepositoryData
to the repository failed.void
onRepositoryDataWritten
(RepositoryData repositoryData) Invoked once the updatedRepositoryData
has been written to the repository and it is safe for the next repository operation to proceed.
-
Method Details
-
onDone
void onDone()Invoked once the snapshots have been fully deleted from the repository, including all async cleanup operations, indicating that listeners waiting for the end of the deletion can now be notified. -
onRepositoryDataWritten
Invoked once the updatedRepositoryData
has been written to the repository and it is safe for the next repository operation to proceed.- Parameters:
repositoryData
- updated repository data
-
onFailure
Invoked if writing updatedRepositoryData
to the repository failed. OnceonRepositoryDataWritten(RepositoryData)
has been invoked this method will never be invoked.- Parameters:
e
- exception during metadata steps of snapshot delete
-