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, suspendpublic ShareUnitOfWorkAggregationStrategy(org.apache.camel.AggregationStrategy strategy)
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.AggregationStrategy getDelegate()
public boolean canPreComplete()
canPreComplete in interface org.apache.camel.AggregationStrategypublic boolean preComplete(org.apache.camel.Exchange oldExchange,
                           org.apache.camel.Exchange newExchange)
preComplete in interface org.apache.camel.AggregationStrategypublic void onCompletion(org.apache.camel.Exchange exchange)
onCompletion in interface org.apache.camel.AggregationStrategypublic void timeout(org.apache.camel.Exchange exchange,
                    int index,
                    int total,
                    long timeout)
timeout in interface org.apache.camel.AggregationStrategypublic void onOptimisticLockFailure(org.apache.camel.Exchange oldExchange,
                                    org.apache.camel.Exchange newExchange)
onOptimisticLockFailure in interface org.apache.camel.AggregationStrategypublic org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange,
                                           org.apache.camel.Exchange newExchange)
aggregate in interface org.apache.camel.AggregationStrategypublic 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.AggregationStrategyprotected 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.ServiceSupportExceptionApache Camel