org.apache.camel.component.seda.SedaEndpointConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.seda;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class SedaEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
private static final Map ALL_OPTIONS;
static {
Map map = new CaseInsensitiveMap();
map.put("name", java.lang.String.class);
map.put("size", int.class);
map.put("bridgeErrorHandler", boolean.class);
map.put("concurrentConsumers", int.class);
map.put("exceptionHandler", org.apache.camel.spi.ExceptionHandler.class);
map.put("exchangePattern", org.apache.camel.ExchangePattern.class);
map.put("limitConcurrentConsumers", boolean.class);
map.put("multipleConsumers", boolean.class);
map.put("pollTimeout", int.class);
map.put("purgeWhenStopping", boolean.class);
map.put("blockWhenFull", boolean.class);
map.put("discardIfNoConsumers", boolean.class);
map.put("discardWhenFull", boolean.class);
map.put("failIfNoConsumers", boolean.class);
map.put("lazyStartProducer", boolean.class);
map.put("offerTimeout", long.class);
map.put("timeout", long.class);
map.put("waitForTaskToComplete", org.apache.camel.WaitForTaskToComplete.class);
map.put("basicPropertyBinding", boolean.class);
map.put("queue", java.util.concurrent.BlockingQueue.class);
map.put("synchronous", boolean.class);
ALL_OPTIONS = map;
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
SedaEndpoint target = (SedaEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "basicpropertybinding":
case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
case "blockwhenfull":
case "blockWhenFull": target.setBlockWhenFull(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "concurrentconsumers":
case "concurrentConsumers": target.setConcurrentConsumers(property(camelContext, int.class, value)); return true;
case "discardifnoconsumers":
case "discardIfNoConsumers": target.setDiscardIfNoConsumers(property(camelContext, boolean.class, value)); return true;
case "discardwhenfull":
case "discardWhenFull": target.setDiscardWhenFull(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler":
case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern":
case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "failifnoconsumers":
case "failIfNoConsumers": target.setFailIfNoConsumers(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "limitconcurrentconsumers":
case "limitConcurrentConsumers": target.setLimitConcurrentConsumers(property(camelContext, boolean.class, value)); return true;
case "multipleconsumers":
case "multipleConsumers": target.setMultipleConsumers(property(camelContext, boolean.class, value)); return true;
case "offertimeout":
case "offerTimeout": target.setOfferTimeout(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "polltimeout":
case "pollTimeout": target.setPollTimeout(property(camelContext, int.class, value)); return true;
case "purgewhenstopping":
case "purgeWhenStopping": target.setPurgeWhenStopping(property(camelContext, boolean.class, value)); return true;
case "queue": target.setQueue(property(camelContext, java.util.concurrent.BlockingQueue.class, value)); return true;
case "size": target.setSize(property(camelContext, int.class, value)); return true;
case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true;
case "timeout": target.setTimeout(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "waitfortasktocomplete":
case "waitForTaskToComplete": target.setWaitForTaskToComplete(property(camelContext, org.apache.camel.WaitForTaskToComplete.class, value)); return true;
default: return false;
}
}
@Override
public Map getAllOptions(Object target) {
return ALL_OPTIONS;
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
SedaEndpoint target = (SedaEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "basicpropertybinding":
case "basicPropertyBinding": return target.isBasicPropertyBinding();
case "blockwhenfull":
case "blockWhenFull": return target.isBlockWhenFull();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "concurrentconsumers":
case "concurrentConsumers": return target.getConcurrentConsumers();
case "discardifnoconsumers":
case "discardIfNoConsumers": return target.isDiscardIfNoConsumers();
case "discardwhenfull":
case "discardWhenFull": return target.isDiscardWhenFull();
case "exceptionhandler":
case "exceptionHandler": return target.getExceptionHandler();
case "exchangepattern":
case "exchangePattern": return target.getExchangePattern();
case "failifnoconsumers":
case "failIfNoConsumers": return target.isFailIfNoConsumers();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "limitconcurrentconsumers":
case "limitConcurrentConsumers": return target.isLimitConcurrentConsumers();
case "multipleconsumers":
case "multipleConsumers": return target.isMultipleConsumers();
case "offertimeout":
case "offerTimeout": return target.getOfferTimeout();
case "polltimeout":
case "pollTimeout": return target.getPollTimeout();
case "purgewhenstopping":
case "purgeWhenStopping": return target.isPurgeWhenStopping();
case "queue": return target.getQueue();
case "size": return target.getSize();
case "synchronous": return target.isSynchronous();
case "timeout": return target.getTimeout();
case "waitfortasktocomplete":
case "waitForTaskToComplete": return target.getWaitForTaskToComplete();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy