org.elasticsearch.index.translog.fs
Class RafReference
java.lang.Object
org.elasticsearch.index.translog.fs.RafReference
public class RafReference
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RafReference
public RafReference(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
file
public File file()
channel
public FileChannel channel()
raf
public 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)
Copyright © 2009-2012. All Rights Reserved.