|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fusesource.hawtdb.api.TxPageFileFactory org.apache.camel.component.hawtdb.HawtDBFile
public class HawtDBFile
Manages access to a shared HawtDB file.
Will by default not sync writes which allows it to be faster. You can force syncing by setting the sync option to true.
Field Summary |
---|
Fields inherited from class org.fusesource.hawtdb.api.TxPageFileFactory |
---|
drainOnClose, sync, useWorkerThread |
Constructor Summary | |
---|---|
HawtDBFile()
|
Method Summary | ||
---|---|---|
|
execute(org.apache.camel.component.hawtdb.Work<T> work)
|
|
|
execute(org.apache.camel.component.hawtdb.Work<T> work,
boolean rollbackOnOptimisticUpdateException)
|
|
org.fusesource.hawtdb.api.SortedIndex<org.fusesource.hawtbuf.Buffer,org.fusesource.hawtbuf.Buffer> |
getRepositoryIndex(org.fusesource.hawtdb.api.Transaction tx,
String name,
boolean create)
|
|
void |
start()
|
|
void |
stop()
|
Methods inherited from class org.fusesource.hawtdb.api.TxPageFileFactory |
---|
close, getFile, getMappingSegementSize, getMaxPages, getPageCache, getPageSize, getTxPageFile, isDrainOnClose, isSync, isUseWorkerThread, open, setDrainOnClose, setFile, setMappingSegementSize, setMaxFileSize, setMaxPages, setPageCache, setPageSize, setSync, setUseWorkerThread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HawtDBFile()
Method Detail |
---|
public void start()
start
in interface org.apache.camel.Service
public void stop()
stop
in interface org.apache.camel.Service
public <T> T execute(org.apache.camel.component.hawtdb.Work<T> work)
public <T> T execute(org.apache.camel.component.hawtdb.Work<T> work, boolean rollbackOnOptimisticUpdateException)
public org.fusesource.hawtdb.api.SortedIndex<org.fusesource.hawtbuf.Buffer,org.fusesource.hawtbuf.Buffer> getRepositoryIndex(org.fusesource.hawtdb.api.Transaction tx, String name, boolean create)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |