public interface RecoverableAggregationRepository extends AggregationRepository
AggregationRepository which also supports recovery. This usually requires
a repository which is persisted.| Modifier and Type | Method and Description |
|---|---|
String |
getDeadLetterUri()
Gets the dead letter channel
|
int |
getMaximumRedeliveries()
Gets the maximum redelivery attempts to do before a recovered
Exchange is doomed as exhausted and moved
to the dead letter channel. |
long |
getRecoveryIntervalInMillis()
Gets the interval between recovery scans in millis.
|
boolean |
isUseRecovery()
Whether or not recovery is enabled or not
|
Exchange |
recover(CamelContext camelContext,
String exchangeId)
Recovers the exchange with the given exchange id
|
Set<String> |
scan(CamelContext camelContext)
Scans the repository for
Exchanges to be recovered |
void |
setDeadLetterUri(String deadLetterUri)
Sets an optional dead letter channel which exhausted recovered
Exchange should be send to. |
void |
setMaximumRedeliveries(int maximumRedeliveries)
Sets an optional limit of the number of redelivery attempt of recovered
Exchange should be attempted,
before its exhausted. |
void |
setRecoveryInterval(long interval)
Sets the interval between recovery scans
|
void |
setRecoveryInterval(long interval,
TimeUnit timeUnit)
Sets the interval between recovery scans
|
void |
setUseRecovery(boolean useRecovery)
Sets whether or not recovery is enabled
|
Set<String> scan(CamelContext camelContext)
Exchanges to be recoveredcamelContext - the current CamelContextExchange recover(CamelContext camelContext, String exchangeId)
camelContext - the current CamelContextexchangeId - exchange idvoid setRecoveryInterval(long interval,
TimeUnit timeUnit)
interval - the intervaltimeUnit - the time unitvoid setRecoveryInterval(long interval)
interval - the interval in millislong getRecoveryIntervalInMillis()
void setUseRecovery(boolean useRecovery)
useRecovery - whether or not recovery is enabledboolean isUseRecovery()
void setDeadLetterUri(String deadLetterUri)
Exchange should be send to.
By default this option is disableddeadLetterUri - the uri of the dead letter channelString getDeadLetterUri()
void setMaximumRedeliveries(int maximumRedeliveries)
Exchange should be attempted,
before its exhausted.
When this limit is hit, then the Exchange is moved to the dead letter channel.
By default this option is disabledmaximumRedeliveries - the maximum redeliveriesint getMaximumRedeliveries()
Exchange is doomed as exhausted and moved
to the dead letter channel.Apache Camel