|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,
String key,
Exchange exchange)
Add the given Exchange under the correlation key. |
void |
confirm(CamelContext camelContext,
String exchangeId)
Confirms the completion of the Exchange. |
protected void |
doStart()
|
protected void |
doStop()
|
Exchange |
get(CamelContext camelContext,
String key)
Gets the given exchange with the correlation key |
Set<String> |
getKeys()
Gets the keys currently in the repository. |
void |
remove(CamelContext camelContext,
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,
String key,
Exchange exchange)
AggregationRepositoryExchange under the correlation key.
Will replace any existing exchange.
add in interface AggregationRepositorycamelContext - the current CamelContextkey - the correlation keyexchange - the aggregated exchange
public Exchange get(CamelContext camelContext,
String key)
AggregationRepository
get in interface AggregationRepositorycamelContext - the current CamelContextkey - the correlation key
public void remove(CamelContext camelContext,
String key,
Exchange exchange)
AggregationRepositoryExchange is completed
remove in interface AggregationRepositorycamelContext - the current CamelContextkey - the correlation keyexchange - the exchange to remove
public void confirm(CamelContext camelContext,
String exchangeId)
AggregationRepositoryExchange.
confirm in interface AggregationRepositorycamelContext - the current CamelContextexchangeId - exchange id to confirmpublic Set<String> getKeys()
AggregationRepository
getKeys in interface AggregationRepository
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||