org.apache.camel.component.ehcache.EhcacheProducerInvokeOnHeaderFactory Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.ehcache;
import org.apache.camel.AsyncCallback;
import org.apache.camel.Exchange;
import org.apache.camel.spi.InvokeOnHeaderStrategy;
import org.apache.camel.component.ehcache.EhcacheProducer;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class EhcacheProducerInvokeOnHeaderFactory implements InvokeOnHeaderStrategy {
@Override
public Object invoke(Object obj, String key, Exchange exchange, AsyncCallback callback) throws Exception {
org.apache.camel.component.ehcache.EhcacheProducer target = (org.apache.camel.component.ehcache.EhcacheProducer) obj;
switch (key) {
case "clear":
case "CLEAR": target.onClear(exchange.getMessage()); return null;
case "get":
case "GET": target.onGet(exchange.getMessage()); return null;
case "get_all":
case "GET_ALL": target.onGetAll(exchange.getMessage()); return null;
case "put":
case "PUT": target.onPut(exchange.getMessage()); return null;
case "put_all":
case "PUT_ALL": target.onPutAll(exchange.getMessage()); return null;
case "put_if_absent":
case "PUT_IF_ABSENT": target.onPutIfAbsent(exchange.getMessage()); return null;
case "remove":
case "REMOVE": target.onRemove(exchange.getMessage()); return null;
case "remove_all":
case "REMOVE_ALL": target.onRemoveAll(exchange.getMessage()); return null;
case "replace":
case "REPLACE": target.onReplace(exchange.getMessage()); return null;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy