public class JCacheAggregationRepository
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.OptimisticLockingAggregationRepository
| Constructor and Description |
|---|
JCacheAggregationRepository() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Exchange |
add(org.apache.camel.CamelContext camelContext,
String key,
org.apache.camel.Exchange exchange) |
org.apache.camel.Exchange |
add(org.apache.camel.CamelContext camelContext,
String key,
org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange) |
void |
confirm(org.apache.camel.CamelContext camelContext,
String exchangeId) |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Exchange |
get(org.apache.camel.CamelContext camelContext,
String key) |
javax.cache.Cache<String,org.apache.camel.impl.DefaultExchangeHolder> |
getCache() |
String |
getCacheName() |
org.apache.camel.CamelContext |
getCamelContext() |
ClassLoader |
getClassLoader() |
JCacheConfiguration |
getConfiguration() |
Set<String> |
getKeys() |
boolean |
isAllowSerializedHeaders() |
boolean |
isOptimistic() |
void |
remove(org.apache.camel.CamelContext camelContext,
String key,
org.apache.camel.Exchange exchange) |
void |
setAllowSerializedHeaders(boolean allowSerializedHeaders) |
void |
setCache(javax.cache.Cache<String,org.apache.camel.impl.DefaultExchangeHolder> cache) |
void |
setCacheName(String cacheName) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setClassLoader(ClassLoader classLoader) |
void |
setConfiguration(JCacheConfiguration configuration) |
void |
setOptimistic(boolean optimistic) |
protected org.apache.camel.Exchange |
unmarshallExchange(org.apache.camel.CamelContext camelContext,
org.apache.camel.impl.DefaultExchangeHolder holder) |
public JCacheConfiguration getConfiguration()
public void setConfiguration(JCacheConfiguration configuration)
public String getCacheName()
public void setCacheName(String cacheName)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public org.apache.camel.CamelContext getCamelContext()
public void setCamelContext(org.apache.camel.CamelContext camelContext)
public javax.cache.Cache<String,org.apache.camel.impl.DefaultExchangeHolder> getCache()
public void setCache(javax.cache.Cache<String,org.apache.camel.impl.DefaultExchangeHolder> cache)
public boolean isOptimistic()
public void setOptimistic(boolean optimistic)
public boolean isAllowSerializedHeaders()
public void setAllowSerializedHeaders(boolean allowSerializedHeaders)
public org.apache.camel.Exchange add(org.apache.camel.CamelContext camelContext,
String key,
org.apache.camel.Exchange oldExchange,
org.apache.camel.Exchange newExchange)
throws org.apache.camel.spi.OptimisticLockingAggregationRepository.OptimisticLockingException
add in interface org.apache.camel.spi.OptimisticLockingAggregationRepositoryorg.apache.camel.spi.OptimisticLockingAggregationRepository.OptimisticLockingExceptionpublic org.apache.camel.Exchange add(org.apache.camel.CamelContext camelContext,
String key,
org.apache.camel.Exchange exchange)
add in interface org.apache.camel.spi.AggregationRepositorypublic org.apache.camel.Exchange get(org.apache.camel.CamelContext camelContext,
String key)
get in interface org.apache.camel.spi.AggregationRepositorypublic void remove(org.apache.camel.CamelContext camelContext,
String key,
org.apache.camel.Exchange exchange)
remove in interface org.apache.camel.spi.AggregationRepositoryremove in interface org.apache.camel.spi.OptimisticLockingAggregationRepositorypublic void confirm(org.apache.camel.CamelContext camelContext,
String exchangeId)
confirm in interface org.apache.camel.spi.AggregationRepositorypublic Set<String> getKeys()
getKeys in interface org.apache.camel.spi.AggregationRepositoryprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ServiceSupportExceptionprotected org.apache.camel.Exchange unmarshallExchange(org.apache.camel.CamelContext camelContext,
org.apache.camel.impl.DefaultExchangeHolder holder)
Apache Camel