Class LevelDBFile
java.lang.Object
org.apache.camel.component.leveldb.LevelDBFile
- All Implemented Interfaces:
AutoCloseable,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 -
Method Summary
Modifier and TypeMethodDescriptionintintlongorg.iq80.leveldb.DBgetDb()getFile()intintorg.iq80.leveldb.WriteOptionsbooleanbooleanisSync()booleanvoidsetBlockRestartInterval(int blockRestartInterval) voidsetBlockSize(int blockSize) voidsetCacheSize(long cacheSize) voidsetCompressionType(String compressionType) voidvoidsetFileName(String fileName) voidsetMaxOpenFiles(int maxOpenFiles) voidsetParanoidChecks(boolean paranoidChecks) voidsetSync(boolean sync) voidsetVerifyChecksums(boolean verifyChecksums) voidsetWriteBufferSize(int writeBufferSize) voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
LevelDBFile
public LevelDBFile()
-
-
Method Details
-
getDb
public org.iq80.leveldb.DB getDb() -
getFile
-
setFile
-
getFileName
- Throws:
IOException
-
setFileName
-
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
-
setCompressionType
-
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
-