java.lang.Object
org.elasticsearch.core.AbstractRefCounted
org.elasticsearch.repositories.SnapshotIndexCommit
- All Implemented Interfaces:
RefCounted
A (closeable)
IndexCommit plus ref-counting to keep track of active users, and with the facility to drop the "main" initial ref
early if the shard snapshot is aborted.-
Field Summary
Fields inherited from class org.elasticsearch.core.AbstractRefCounted
ALREADY_CLOSED_MESSAGE, INVALID_DECREF_MESSAGEFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void<T> ActionListener<T> closingBefore(ActionListener<T> delegate) Returns a listener which closes this commit before completing the delegate listener, marshalling exceptions to the delegate as appropriate.org.apache.lucene.index.IndexCommitvoidonAbort()Called to abort the snapshot while it's running: release the initial ref (if not already released).Methods inherited from class org.elasticsearch.core.AbstractRefCounted
alreadyClosed, decRef, hasReferences, incRef, mustIncRef, of, refCount, touch, tryIncRef
-
Constructor Details
-
SnapshotIndexCommit
-
-
Method Details
-
closeInternal
protected void closeInternal()- Specified by:
closeInternalin classAbstractRefCounted
-
onAbort
public void onAbort()Called to abort the snapshot while it's running: release the initial ref (if not already released). -
indexCommit
public org.apache.lucene.index.IndexCommit indexCommit() -
closingBefore
Returns a listener which closes this commit before completing the delegate listener, marshalling exceptions to the delegate as appropriate.
-