org.apache.camel.component.hawtdb
Class HawtDBFile

java.lang.Object
  extended by org.fusesource.hawtdb.api.TxPageFileFactory
      extended by org.apache.camel.component.hawtdb.HawtDBFile
All Implemented Interfaces:
org.apache.camel.Service

public class HawtDBFile
extends org.fusesource.hawtdb.api.TxPageFileFactory
implements org.apache.camel.Service

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
<T> T
execute(org.apache.camel.component.hawtdb.Work<T> work)
           
<T> T
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

HawtDBFile

public HawtDBFile()
Method Detail

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

execute

public <T> T execute(org.apache.camel.component.hawtdb.Work<T> work)

execute

public <T> T execute(org.apache.camel.component.hawtdb.Work<T> work,
                     boolean rollbackOnOptimisticUpdateException)

getRepositoryIndex

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)


Apache Camel