Examples of CacheManagerFactory


Examples of org.apache.camel.component.cache.factory.CacheManagerFactory

        this.xpath = xpath;
    }

    public void process(Exchange exchange) throws Exception {
        // Cache the buffer to the specified Cache against the specified key
        cacheManager = new CacheManagerFactory().instantiateCacheManager();

        if (isValid(cacheManager, cacheName, key)) {
            cache = cacheManager.getCache(cacheName);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Replacing XPath value " + xpath + "in Message with value stored against key " + key
View Full Code Here

Examples of org.apache.camel.component.cache.factory.CacheManagerFactory

    public CacheEndpoint getEndpoint() {
        return endpoint;
    }
   
    private void createConsumerCacheConnection() {
        cacheManager = new CacheManagerFactory().instantiateCacheManager();
        CacheEventListener cacheEventListener = new CacheEventListenerFactory().createCacheEventListener(null);
        cacheEventListener.setCacheConsumer(this);

        if (cacheManager.cacheExists(config.getCacheName())) {
            cache = cacheManager.getCache(config.getCacheName());
View Full Code Here

Examples of org.apache.camel.component.cache.factory.CacheManagerFactory

        this.setKey(key);
    }

    public void process(Exchange exchange) throws Exception {
        // Cache the buffer to the specified Cache against the specified key
        cacheManager = new CacheManagerFactory().instantiateCacheManager();

        if (isValid(cacheManager, cacheName, key)) {
            cache = cacheManager.getCache(cacheName);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Replacing Message Body from CacheName " + cacheName + " for key " + key);
View Full Code Here

Examples of org.apache.marmotta.kiwi.caching.CacheManagerFactory

            Class factory = Class.forName(configuration.getCachingBackend().getFactoryClass());
            cacheManager = ((CacheManagerFactory)factory.newInstance()).createCacheManager(configuration);
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
            log.warn("cache manager factory {} not found on classpath (error: {}); falling back to Guava in-memory cache backend!", configuration.getCachingBackend(), e.getMessage());

            CacheManagerFactory factory = new GuavaCacheManagerFactory();
            cacheManager = factory.createCacheManager(configuration);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.