org.apache.camel.component.leveldb
Class LevelDBFile
java.lang.Object
org.apache.camel.component.leveldb.LevelDBFile
- All Implemented Interfaces:
- org.apache.camel.Service
public class LevelDBFile
- extends Object
- implements org.apache.camel.Service
Manages access to a shared LevelDB file.
Will by default not sync writes which allows it to be faster.
You can force syncing by setting the sync option to true.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LevelDBFile
public LevelDBFile()
getDb
public org.iq80.leveldb.DB getDb()
setFile
public void setFile(File file)
throws IOException
- Throws:
IOException
getFile
public File getFile()
setFileName
public void setFileName(String fileName)
getFileName
public String getFileName()
throws IOException
- Throws:
IOException
getWriteBufferSize
public int getWriteBufferSize()
setWriteBufferSize
public void setWriteBufferSize(int writeBufferSize)
getMaxOpenFiles
public int getMaxOpenFiles()
setMaxOpenFiles
public void setMaxOpenFiles(int maxOpenFiles)
getBlockRestartInterval
public int getBlockRestartInterval()
setBlockRestartInterval
public void setBlockRestartInterval(int blockRestartInterval)
getBlockSize
public int getBlockSize()
setBlockSize
public void setBlockSize(int blockSize)
getCompressionType
public String getCompressionType()
setCompressionType
public void setCompressionType(String compressionType)
isVerifyChecksums
public boolean isVerifyChecksums()
setVerifyChecksums
public void setVerifyChecksums(boolean verifyChecksums)
isParanoidChecks
public boolean isParanoidChecks()
setParanoidChecks
public void setParanoidChecks(boolean paranoidChecks)
getCacheSize
public long getCacheSize()
setCacheSize
public void setCacheSize(long cacheSize)
isSync
public boolean isSync()
setSync
public void setSync(boolean sync)
getWriteOptions
public org.iq80.leveldb.WriteOptions getWriteOptions()
start
public void start()
- Specified by:
start
in interface org.apache.camel.Service
stop
public void stop()
- Specified by:
stop
in interface org.apache.camel.Service
Apache CAMEL