Class LevelDBFile
- java.lang.Object
-
- org.apache.camel.component.leveldb.LevelDBFile
-
- All Implemented Interfaces:
AutoCloseable,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.
-
-
Constructor Summary
Constructors Constructor Description LevelDBFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlockRestartInterval()intgetBlockSize()longgetCacheSize()StringgetCompressionType()org.iq80.leveldb.DBgetDb()FilegetFile()StringgetFileName()intgetMaxOpenFiles()intgetWriteBufferSize()org.iq80.leveldb.WriteOptionsgetWriteOptions()booleanisParanoidChecks()booleanisSync()booleanisVerifyChecksums()voidsetBlockRestartInterval(int blockRestartInterval)voidsetBlockSize(int blockSize)voidsetCacheSize(long cacheSize)voidsetCompressionType(String compressionType)voidsetFile(File file)voidsetFileName(String fileName)voidsetMaxOpenFiles(int maxOpenFiles)voidsetParanoidChecks(boolean paranoidChecks)voidsetSync(boolean sync)voidsetVerifyChecksums(boolean verifyChecksums)voidsetWriteBufferSize(int writeBufferSize)voidstart()voidstop()
-
-
-
Method Detail
-
getDb
public org.iq80.leveldb.DB getDb()
-
getFile
public File getFile()
-
setFile
public void setFile(File file)
-
getFileName
public String getFileName() throws IOException
- Throws:
IOException
-
setFileName
public void setFileName(String fileName)
-
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:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.camel.Service
-
-