|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.component.hawtdb.HawtDBAggregationRepository
public class HawtDBAggregationRepository
An instance of AggregationRepository which is backed by a HawtDB.
| Constructor Summary | |
|---|---|
HawtDBAggregationRepository()
Creates an aggregation repository |
|
HawtDBAggregationRepository(String repositoryName)
Creates an aggregation repository |
|
HawtDBAggregationRepository(String repositoryName,
HawtDBFile hawtDBFile)
Creates an aggregation repository using the provided HawtDBFile. |
|
HawtDBAggregationRepository(String repositoryName,
String persistentFileName)
Creates an aggregation repository using a new HawtDBFile
that persists using the provided file. |
|
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HawtDBAggregationRepository()
public HawtDBAggregationRepository(String repositoryName)
repositoryName - the repository name
public HawtDBAggregationRepository(String repositoryName,
String persistentFileName)
HawtDBFile
that persists using the provided file.
repositoryName - the repository namepersistentFileName - the persistent store filename
public HawtDBAggregationRepository(String repositoryName,
HawtDBFile hawtDBFile)
HawtDBFile.
repositoryName - the repository namehawtDBFile - the hawtdb file to use as persistent store| Method Detail |
|---|
public Exchange add(CamelContext camelContext,
String key,
Exchange exchange)
add in interface AggregationRepository
public Exchange get(CamelContext camelContext,
String key)
get in interface AggregationRepository
public void remove(CamelContext camelContext,
String key,
Exchange exchange)
remove in interface AggregationRepository
public void confirm(CamelContext camelContext,
String exchangeId)
confirm in interface AggregationRepositorypublic Set<String> getKeys()
getKeys in interface AggregationRepositorypublic Set<String> scan(CamelContext camelContext)
scan in interface RecoverableAggregationRepository
public Exchange recover(CamelContext camelContext,
String exchangeId)
recover in interface RecoverableAggregationRepositorypublic HawtDBFile getHawtDBFile()
public void setHawtDBFile(HawtDBFile hawtDBFile)
public String getRepositoryName()
public void setRepositoryName(String repositoryName)
public String getPersistentFileName()
public void setPersistentFileName(String persistentFileName)
public boolean isSync()
public void setSync(boolean sync)
public Integer getBufferSize()
public void setBufferSize(Integer bufferSize)
public boolean isReturnOldExchange()
public void setReturnOldExchange(boolean returnOldExchange)
public void setRecoveryInterval(long interval,
TimeUnit timeUnit)
setRecoveryInterval in interface RecoverableAggregationRepositorypublic void setRecoveryInterval(long interval)
setRecoveryInterval in interface RecoverableAggregationRepositorypublic long getRecoveryIntervalInMillis()
getRecoveryIntervalInMillis in interface RecoverableAggregationRepositorypublic boolean isUseRecovery()
isUseRecovery in interface RecoverableAggregationRepositorypublic void setUseRecovery(boolean useRecovery)
setUseRecovery in interface RecoverableAggregationRepositorypublic int getMaximumRedeliveries()
getMaximumRedeliveries in interface RecoverableAggregationRepositorypublic void setMaximumRedeliveries(int maximumRedeliveries)
setMaximumRedeliveries in interface RecoverableAggregationRepositorypublic String getDeadLetterUri()
getDeadLetterUri in interface RecoverableAggregationRepositorypublic void setDeadLetterUri(String deadLetterUri)
setDeadLetterUri in interface RecoverableAggregationRepositorypublic short getPageSize()
public void setPageSize(short pageSize)
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||