Class ShareUnitOfWorkAggregationStrategy
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.processor.aggregate.ShareUnitOfWorkAggregationStrategy
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.AggregationStrategy,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
public final class ShareUnitOfWorkAggregationStrategy extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.AggregationStrategy, org.apache.camel.CamelContextAwareAnAggregationStrategywhich 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 Summary
Constructors Constructor Description ShareUnitOfWorkAggregationStrategy(org.apache.camel.AggregationStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.Exchangeaggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)org.apache.camel.Exchangeaggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange, org.apache.camel.Exchange inputExchange)booleancanPreComplete()protected voiddoStart()protected voiddoStop()org.apache.camel.CamelContextgetCamelContext()org.apache.camel.AggregationStrategygetDelegate()voidonCompletion(org.apache.camel.Exchange exchange)voidonOptimisticLockFailure(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)booleanpreComplete(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)protected voidpropagateFailure(org.apache.camel.Exchange answer, org.apache.camel.Exchange newExchange)voidsetCamelContext(org.apache.camel.CamelContext camelContext)voidtimeout(org.apache.camel.Exchange exchange, int index, int total, long timeout)StringtoString()-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getDelegate
public org.apache.camel.AggregationStrategy getDelegate()
-
canPreComplete
public boolean canPreComplete()
- Specified by:
canPreCompletein interfaceorg.apache.camel.AggregationStrategy
-
preComplete
public boolean preComplete(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)- Specified by:
preCompletein interfaceorg.apache.camel.AggregationStrategy
-
onCompletion
public void onCompletion(org.apache.camel.Exchange exchange)
- Specified by:
onCompletionin interfaceorg.apache.camel.AggregationStrategy
-
timeout
public void timeout(org.apache.camel.Exchange exchange, int index, int total, long timeout)- Specified by:
timeoutin interfaceorg.apache.camel.AggregationStrategy
-
onOptimisticLockFailure
public void onOptimisticLockFailure(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)- Specified by:
onOptimisticLockFailurein interfaceorg.apache.camel.AggregationStrategy
-
aggregate
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange)- Specified by:
aggregatein interfaceorg.apache.camel.AggregationStrategy
-
aggregate
public org.apache.camel.Exchange aggregate(org.apache.camel.Exchange oldExchange, org.apache.camel.Exchange newExchange, org.apache.camel.Exchange inputExchange)- Specified by:
aggregatein interfaceorg.apache.camel.AggregationStrategy
-
propagateFailure
protected void propagateFailure(org.apache.camel.Exchange answer, org.apache.camel.Exchange newExchange)
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
-