public final class ShareUnitOfWorkAggregationStrategy
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.AggregationStrategy, org.apache.camel.CamelContextAware
AggregationStrategy
which are used when the option shareUnitOfWork is enabled
on EIPs such as multicast, splitter or recipientList.
This strategy wraps the actual in use strategy to provide the logic needed for making shareUnitOfWork work.
This strategy is not intended for end users to use.Constructor and Description |
---|
ShareUnitOfWorkAggregationStrategy(org.apache.camel.AggregationStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Exchange |
aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange) |
org.apache.camel.Exchange |
aggregate(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange,
org.apache.camel.Exchange inputExchange) |
boolean |
canPreComplete() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
org.apache.camel.AggregationStrategy |
getDelegate() |
void |
onCompletion(org.apache.camel.Exchange exchange) |
void |
onOptimisticLockFailure(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange) |
boolean |
preComplete(org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange) |
protected void |
propagateFailure(org.apache.camel.Exchange answer,
org.apache.camel.Exchange newExchange) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
timeout(org.apache.camel.Exchange exchange,
int index,
int total,
long timeout) |
String |
toString() |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public ShareUnitOfWorkAggregationStrategy(org.apache.camel.AggregationStrategy strategy)
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.AggregationStrategy getDelegate()
public boolean canPreComplete()
canPreComplete
in interface org.apache.camel.AggregationStrategy
public boolean preComplete(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
preComplete
in interface org.apache.camel.AggregationStrategy
public void onCompletion(org.apache.camel.Exchange exchange)
onCompletion
in interface org.apache.camel.AggregationStrategy
public void timeout(org.apache.camel.Exchange exchange, int index, int total, long timeout)
timeout
in interface org.apache.camel.AggregationStrategy
public void onOptimisticLockFailure(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
onOptimisticLockFailure
in interface org.apache.camel.AggregationStrategy
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)
aggregate
in interface org.apache.camel.AggregationStrategy
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange, org.apache.camel.Exchange inputExchange)
aggregate
in interface org.apache.camel.AggregationStrategy
protected void propagateFailure(org.apache.camel.Exchange answer, org.apache.camel.Exchange newExchange)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
Apache Camel