org.elasticsearch.index.translog.fs
Class RafReference

java.lang.Object
  extended by org.elasticsearch.index.translog.fs.RafReference

public class RafReference
extends java.lang.Object


Constructor Summary
RafReference(java.io.File file)
           
 
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
 

Constructor Detail

RafReference

public RafReference(java.io.File file)
             throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

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)