org.elasticsearch.index.translog.fs
Class RafReference
java.lang.Object
org.elasticsearch.index.translog.fs.RafReference
public class RafReference
- extends java.lang.Object
Method Summary |
java.nio.channels.FileChannel |
channel()
|
void |
decreaseRefCount(boolean delete)
|
java.io.File |
file()
|
boolean |
increaseRefCount()
Increases the ref count, and returns true if it managed to
actually increment it. |
java.io.RandomAccessFile |
raf()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RafReference
public RafReference(java.io.File file)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
file
public java.io.File file()
channel
public java.nio.channels.FileChannel channel()
raf
public java.io.RandomAccessFile raf()
increaseRefCount
public boolean increaseRefCount()
- Increases the ref count, and returns true if it managed to
actually increment it.
decreaseRefCount
public void decreaseRefCount(boolean delete)