Package org.apache.camel.component.cache.factory

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


        this.setReplacementToken(replacementToken);
    }

    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()) {
View Full Code Here


        this.config = config;
    }

    public void process(Exchange exchange) throws Exception {
        
        cacheManager = new CacheManagerFactory().instantiateCacheManager();
       
        if (LOG.isTraceEnabled()) {
            LOG.trace("Cache Name: " + config.getCacheName());
        }
        if (cacheManager.cacheExists(config.getCacheName())) {
View Full Code Here

        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()) {
View Full Code Here

        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

    public CacheEndpoint getEndpoint() {
        return endpoint;
    }
   
    protected 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

        for (int j = 0; j < n; j++) {
            buffer[j] = (byte)is.read();
        }       
       
        // Cache the buffer to the specified Cache against the specified key
        cacheManager = new CacheManagerFactory().instantiateCacheManager();
       
        LOG.debug("Cache Name: " + config.getCacheName());
        if (cacheManager.cacheExists(config.getCacheName())) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Found an existing cache: " + config.getCacheName());
View Full Code Here

        this.setReplacementToken(replacementToken);
    }

    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 Token " + replacementToken + "in Message with value stored against key "
View Full Code Here

        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

    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

        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

TOP

Related Classes of org.apache.camel.component.cache.factory.CacheManagerFactory

Copyright © 2018 www.massapicom. 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.