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_MESSAGE
Fields 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.IndexCommit
void
onAbort()
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, of, refCount, touch, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
SnapshotIndexCommit
-
-
Method Details
-
closeInternal
protected void closeInternal()- Specified by:
closeInternal
in 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.
-