Package org.elasticsearch.index.engine
Class Engine.IndexCommitRef
- java.lang.Object
-
- org.elasticsearch.index.engine.Engine.IndexCommitRef
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- Engine
public static class Engine.IndexCommitRef extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description IndexCommitRef(IndexCommit indexCommit, CheckedRunnable<IOException> onClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()IndexCommitgetIndexCommit()
-
-
-
Constructor Detail
-
IndexCommitRef
public IndexCommitRef(IndexCommit indexCommit, CheckedRunnable<IOException> onClose)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getIndexCommit
public IndexCommit getIndexCommit()
-
-