|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.ServiceSupport org.apache.camel.processor.aggregate.MemoryAggregationRepository
public class MemoryAggregationRepository
A memory based AggregationRepository
which stores in memory only.
Constructor Summary | |
---|---|
MemoryAggregationRepository()
|
Method Summary | |
---|---|
Exchange |
add(CamelContext camelContext,
java.lang.String key,
Exchange exchange)
Add the given Exchange under the correlation key. |
void |
confirm(CamelContext camelContext,
java.lang.String exchangeId)
Confirms the completion of the Exchange . |
protected void |
doStart()
|
protected void |
doStop()
|
Exchange |
get(CamelContext camelContext,
java.lang.String key)
Gets the given exchange with the correlation key |
java.util.Set<java.lang.String> |
getKeys()
Gets the keys currently in the repository. |
void |
remove(CamelContext camelContext,
java.lang.String key,
Exchange exchange)
Removes the exchange with the given correlation key, which should happen when an Exchange is completed |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryAggregationRepository()
Method Detail |
---|
public Exchange add(CamelContext camelContext, java.lang.String key, Exchange exchange)
AggregationRepository
Exchange
under the correlation key.
Will replace any existing exchange.
add
in interface AggregationRepository
camelContext
- the current CamelContextkey
- the correlation keyexchange
- the aggregated exchange
public Exchange get(CamelContext camelContext, java.lang.String key)
AggregationRepository
get
in interface AggregationRepository
camelContext
- the current CamelContextkey
- the correlation key
public void remove(CamelContext camelContext, java.lang.String key, Exchange exchange)
AggregationRepository
Exchange
is completed
remove
in interface AggregationRepository
camelContext
- the current CamelContextkey
- the correlation keyexchange
- the exchange to removepublic void confirm(CamelContext camelContext, java.lang.String exchangeId)
AggregationRepository
Exchange
.
confirm
in interface AggregationRepository
camelContext
- the current CamelContextexchangeId
- exchange id to confirmpublic java.util.Set<java.lang.String> getKeys()
AggregationRepository
getKeys
in interface AggregationRepository
protected void doStart() throws java.lang.Exception
doStart
in class ServiceSupport
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class ServiceSupport
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |