org.elasticsearch.index.translog.fs
Class RafReference

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

public class RafReference
extends Object


Constructor Summary
RafReference(File file)
           
 
Method Summary
 FileChannel channel()
           
 void decreaseRefCount(boolean delete)
           
 File file()
           
 boolean increaseRefCount()
          Increases the ref count, and returns true if it managed to actually increment it.
 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(File file)
             throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

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.