public ErpProducer(Endpoint endpoint) { super(endpoint); // use Camel to create the thread pool for us this.executor = endpoint.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "ERP", 10); }
@Override protected void doStart() throws Exception { super.doStart(); log.info("Starting CouchDB consumer"); executor = endpoint.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, endpoint.getEndpointUri(), 1); task = new CouchDbChangesetTracker(endpoint, this, couchClient); executor.submit(task); }
@Override protected void doStart() throws Exception { super.doStart(); executor = endpoint.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, endpoint.getEndpointUri(), 1); executor.execute(this); }
public ExecutorService createExecutor() { return getCamelContext() .getExecutorServiceManager() .newFixedThreadPool(this, "GooglePubsubConsumer[" + getDestinationName() + "]", concurrentConsumers); }
public ExecutorService createExecutor() { return getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "KubernetesConsumer", configuration.getPoolSize()); }
@Override protected void doStart() throws Exception { super.doStart(); connection = zkm.getConnection(); if (log.isDebugEnabled()) { log.debug(String.format("Connected to Zookeeper cluster %s", configuration.getConnectString())); } initializeConsumer(); executor = getEndpoint().getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "Camel-Zookeeper OperationsExecutor", 1); OperationsExecutor opsService = new OperationsExecutor(); executor.submit(opsService); }
public ExecutorService createExecutor() { return getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "QueueConsumer", configuration.getPoolSize()); }
@Override protected void doStart() throws Exception { super.doStart(); // use Camel to create the thread pool for us this.executor = getEndpoint().getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "ERP", 10); }
protected ExecutorService createExecutor() { if (getCamelContext() != null) { return getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "RabbitMQConsumer", getThreadPoolSize()); } else { return Executors.newFixedThreadPool(getThreadPoolSize()); } }
@Override protected void doStart() throws Exception { int concurrentConsumers = endpoint.getConfiguration().getConcurrentConsumers(); executor = endpoint.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, endpoint.getEndpointUri(), concurrentConsumers); for (int i = 0; i < concurrentConsumers; i++) { executor.execute(this); } super.doStart(); }
public ExecutorService createExecutor() { return getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, "KafkaConsumer[" + configuration.getTopic() + "]", configuration.getConsumerStreams()); }
LOGGER.debug("Creating new executor with {} threads", newSize); executor = component.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, uri, newSize); } else if (executor != null && newSize <= 0) { executor = component.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, uri, newSize);
@Override protected void doStart() throws Exception { super.doStart(); executor = endpoint.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, endpoint.getEndpointUri(), 1); MongoDbTailTrackingManager trackingManager = initTailTracking(); tailingProcess = new MongoDbTailingProcess(endpoint, this, trackingManager); tailingProcess.initializeProcess(); executor.execute(tailingProcess); }
@Override protected void doStart() throws Exception { if (configuration.isAsync()) { executor = endpoint.getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, endpoint.getEndpointUri(), configuration.getThreadPoolSize()); } super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); int poolSize = endpoint.getConcurrentConsumers(); if (executor == null) { executor = getEndpoint().getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, getEndpoint().getEndpointUri(), poolSize); } this.service.attachCamelConsumer(endpoint.getStream(), this); }
@Override protected void doStart() throws Exception { ((RouteboxSedaEndpoint)getRouteboxEndpoint()).onStarted(this); doStartInnerContext(); // Create a URI link from the primary context to routes in the new inner context int poolSize = getRouteboxEndpoint().getConfig().getThreads(); setExecutor(getRouteboxEndpoint().getCamelContext().getExecutorServiceManager().newFixedThreadPool(this, getRouteboxEndpoint().getEndpointUri(), poolSize)); for (int i = 0; i < poolSize; i++) { getExecutor().execute(this); } }