blob: 17e9456acdd6c43ee72c7d907411c0d1c26f9bf1 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.builder.endpoint.dsl;
import java.util.concurrent.BlockingQueue;
import javax.annotation.Generated;
import org.apache.camel.ExchangePattern;
import org.apache.camel.WaitForTaskToComplete;
import org.apache.camel.builder.EndpointConsumerBuilder;
import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
import org.apache.camel.spi.ExceptionHandler;
/**
* The stub component provides a simple way to stub out any physical endpoints
* while in development or testing.
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
public interface StubEndpointBuilderFactory {
/**
* Builder for endpoint consumers for the Stub component.
*/
public interface StubEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default AdvancedStubEndpointConsumerBuilder advanced() {
return (AdvancedStubEndpointConsumerBuilder) this;
}
/**
* The maximum capacity of the SEDA queue (i.e., the number of messages
* it can hold). Will by default use the defaultSize set on the SEDA
* component.
*
* The option is a: <code>int</code> type.
*
* Group: common
*/
default StubEndpointConsumerBuilder size(int size) {
doSetProperty("size", size);
return this;
}
/**
* The maximum capacity of the SEDA queue (i.e., the number of messages
* it can hold). Will by default use the defaultSize set on the SEDA
* component.
*
* The option will be converted to a <code>int</code> type.
*
* Group: common
*/
default StubEndpointConsumerBuilder size(String size) {
doSetProperty("size", size);
return this;
}
/**
* Allows for bridging the consumer to the Camel routing Error Handler,
* which mean any exceptions occurred while the consumer is trying to
* pickup incoming messages, or the likes, will now be processed as a
* message and handled by the routing Error Handler. By default the
* consumer will use the org.apache.camel.spi.ExceptionHandler to deal
* with exceptions, that will be logged at WARN or ERROR level and
* ignored.
*
* The option is a: <code>boolean</code> type.
*
* Group: consumer
*/
default StubEndpointConsumerBuilder bridgeErrorHandler(
boolean bridgeErrorHandler) {
doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
return this;
}
/**
* Allows for bridging the consumer to the Camel routing Error Handler,
* which mean any exceptions occurred while the consumer is trying to
* pickup incoming messages, or the likes, will now be processed as a
* message and handled by the routing Error Handler. By default the
* consumer will use the org.apache.camel.spi.ExceptionHandler to deal
* with exceptions, that will be logged at WARN or ERROR level and
* ignored.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: consumer
*/
default StubEndpointConsumerBuilder bridgeErrorHandler(
String bridgeErrorHandler) {
doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
return this;
}
/**
* Number of concurrent threads processing exchanges.
*
* The option is a: <code>int</code> type.
*
* Group: consumer
*/
default StubEndpointConsumerBuilder concurrentConsumers(
int concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* Number of concurrent threads processing exchanges.
*
* The option will be converted to a <code>int</code> type.
*
* Group: consumer
*/
default StubEndpointConsumerBuilder concurrentConsumers(
String concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
}
/**
* Advanced builder for endpoint consumers for the Stub component.
*/
public interface AdvancedStubEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default StubEndpointConsumerBuilder basic() {
return (StubEndpointConsumerBuilder) this;
}
/**
* To let the consumer use a custom ExceptionHandler. Notice if the
* option bridgeErrorHandler is enabled then this option is not in use.
* By default the consumer will deal with exceptions, that will be
* logged at WARN or ERROR level and ignored.
*
* The option is a: <code>org.apache.camel.spi.ExceptionHandler</code>
* type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder exceptionHandler(
ExceptionHandler exceptionHandler) {
doSetProperty("exceptionHandler", exceptionHandler);
return this;
}
/**
* To let the consumer use a custom ExceptionHandler. Notice if the
* option bridgeErrorHandler is enabled then this option is not in use.
* By default the consumer will deal with exceptions, that will be
* logged at WARN or ERROR level and ignored.
*
* The option will be converted to a
* <code>org.apache.camel.spi.ExceptionHandler</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder exceptionHandler(
String exceptionHandler) {
doSetProperty("exceptionHandler", exceptionHandler);
return this;
}
/**
* Sets the exchange pattern when the consumer creates an exchange.
*
* The option is a: <code>org.apache.camel.ExchangePattern</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder exchangePattern(
ExchangePattern exchangePattern) {
doSetProperty("exchangePattern", exchangePattern);
return this;
}
/**
* Sets the exchange pattern when the consumer creates an exchange.
*
* The option will be converted to a
* <code>org.apache.camel.ExchangePattern</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder exchangePattern(
String exchangePattern) {
doSetProperty("exchangePattern", exchangePattern);
return this;
}
/**
* Whether to limit the number of concurrentConsumers to the maximum of
* 500. By default, an exception will be thrown if an endpoint is
* configured with a greater number. You can disable that check by
* turning this option off.
*
* The option is a: <code>boolean</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder limitConcurrentConsumers(
boolean limitConcurrentConsumers) {
doSetProperty("limitConcurrentConsumers", limitConcurrentConsumers);
return this;
}
/**
* Whether to limit the number of concurrentConsumers to the maximum of
* 500. By default, an exception will be thrown if an endpoint is
* configured with a greater number. You can disable that check by
* turning this option off.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder limitConcurrentConsumers(
String limitConcurrentConsumers) {
doSetProperty("limitConcurrentConsumers", limitConcurrentConsumers);
return this;
}
/**
* Specifies whether multiple consumers are allowed. If enabled, you can
* use SEDA for Publish-Subscribe messaging. That is, you can send a
* message to the SEDA queue and have each consumer receive a copy of
* the message. When enabled, this option should be specified on every
* consumer endpoint.
*
* The option is a: <code>boolean</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder multipleConsumers(
boolean multipleConsumers) {
doSetProperty("multipleConsumers", multipleConsumers);
return this;
}
/**
* Specifies whether multiple consumers are allowed. If enabled, you can
* use SEDA for Publish-Subscribe messaging. That is, you can send a
* message to the SEDA queue and have each consumer receive a copy of
* the message. When enabled, this option should be specified on every
* consumer endpoint.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder multipleConsumers(
String multipleConsumers) {
doSetProperty("multipleConsumers", multipleConsumers);
return this;
}
/**
* The timeout used when polling. When a timeout occurs, the consumer
* can check whether it is allowed to continue running. Setting a lower
* value allows the consumer to react more quickly upon shutdown.
*
* The option is a: <code>int</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder pollTimeout(int pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* The timeout used when polling. When a timeout occurs, the consumer
* can check whether it is allowed to continue running. Setting a lower
* value allows the consumer to react more quickly upon shutdown.
*
* The option will be converted to a <code>int</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder pollTimeout(
String pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* Whether to purge the task queue when stopping the consumer/route.
* This allows to stop faster, as any pending messages on the queue is
* discarded.
*
* The option is a: <code>boolean</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder purgeWhenStopping(
boolean purgeWhenStopping) {
doSetProperty("purgeWhenStopping", purgeWhenStopping);
return this;
}
/**
* Whether to purge the task queue when stopping the consumer/route.
* This allows to stop faster, as any pending messages on the queue is
* discarded.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: consumer (advanced)
*/
default AdvancedStubEndpointConsumerBuilder purgeWhenStopping(
String purgeWhenStopping) {
doSetProperty("purgeWhenStopping", purgeWhenStopping);
return this;
}
/**
* Whether the endpoint should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities.
*
* The option is a: <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointConsumerBuilder basicPropertyBinding(
boolean basicPropertyBinding) {
doSetProperty("basicPropertyBinding", basicPropertyBinding);
return this;
}
/**
* Whether the endpoint should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointConsumerBuilder basicPropertyBinding(
String basicPropertyBinding) {
doSetProperty("basicPropertyBinding", basicPropertyBinding);
return this;
}
/**
* Define the queue instance which will be used by the endpoint. This
* option is only for rare use-cases where you want to use a custom
* queue instance.
*
* The option is a: <code>java.util.concurrent.BlockingQueue</code>
* type.
*
* Group: advanced
*/
default AdvancedStubEndpointConsumerBuilder queue(BlockingQueue queue) {
doSetProperty("queue", queue);
return this;
}
/**
* Define the queue instance which will be used by the endpoint. This
* option is only for rare use-cases where you want to use a custom
* queue instance.
*
* The option will be converted to a
* <code>java.util.concurrent.BlockingQueue</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointConsumerBuilder queue(String queue) {
doSetProperty("queue", queue);
return this;
}
/**
* Sets whether synchronous processing should be strictly used, or Camel
* is allowed to use asynchronous processing (if supported).
*
* The option is a: <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointConsumerBuilder synchronous(
boolean synchronous) {
doSetProperty("synchronous", synchronous);
return this;
}
/**
* Sets whether synchronous processing should be strictly used, or Camel
* is allowed to use asynchronous processing (if supported).
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointConsumerBuilder synchronous(
String synchronous) {
doSetProperty("synchronous", synchronous);
return this;
}
}
/**
* Builder for endpoint producers for the Stub component.
*/
public interface StubEndpointProducerBuilder
extends
EndpointProducerBuilder {
default AdvancedStubEndpointProducerBuilder advanced() {
return (AdvancedStubEndpointProducerBuilder) this;
}
/**
* The maximum capacity of the SEDA queue (i.e., the number of messages
* it can hold). Will by default use the defaultSize set on the SEDA
* component.
*
* The option is a: <code>int</code> type.
*
* Group: common
*/
default StubEndpointProducerBuilder size(int size) {
doSetProperty("size", size);
return this;
}
/**
* The maximum capacity of the SEDA queue (i.e., the number of messages
* it can hold). Will by default use the defaultSize set on the SEDA
* component.
*
* The option will be converted to a <code>int</code> type.
*
* Group: common
*/
default StubEndpointProducerBuilder size(String size) {
doSetProperty("size", size);
return this;
}
/**
* Whether a thread that sends messages to a full SEDA queue will block
* until the queue's capacity is no longer exhausted. By default, an
* exception will be thrown stating that the queue is full. By enabling
* this option, the calling thread will instead block and wait until the
* message can be accepted.
*
* The option is a: <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder blockWhenFull(boolean blockWhenFull) {
doSetProperty("blockWhenFull", blockWhenFull);
return this;
}
/**
* Whether a thread that sends messages to a full SEDA queue will block
* until the queue's capacity is no longer exhausted. By default, an
* exception will be thrown stating that the queue is full. By enabling
* this option, the calling thread will instead block and wait until the
* message can be accepted.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder blockWhenFull(String blockWhenFull) {
doSetProperty("blockWhenFull", blockWhenFull);
return this;
}
/**
* Whether the producer should discard the message (do not add the
* message to the queue), when sending to a queue with no active
* consumers. Only one of the options discardIfNoConsumers and
* failIfNoConsumers can be enabled at the same time.
*
* The option is a: <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder discardIfNoConsumers(
boolean discardIfNoConsumers) {
doSetProperty("discardIfNoConsumers", discardIfNoConsumers);
return this;
}
/**
* Whether the producer should discard the message (do not add the
* message to the queue), when sending to a queue with no active
* consumers. Only one of the options discardIfNoConsumers and
* failIfNoConsumers can be enabled at the same time.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder discardIfNoConsumers(
String discardIfNoConsumers) {
doSetProperty("discardIfNoConsumers", discardIfNoConsumers);
return this;
}
/**
* Whether the producer should fail by throwing an exception, when
* sending to a queue with no active consumers. Only one of the options
* discardIfNoConsumers and failIfNoConsumers can be enabled at the same
* time.
*
* The option is a: <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder failIfNoConsumers(
boolean failIfNoConsumers) {
doSetProperty("failIfNoConsumers", failIfNoConsumers);
return this;
}
/**
* Whether the producer should fail by throwing an exception, when
* sending to a queue with no active consumers. Only one of the options
* discardIfNoConsumers and failIfNoConsumers can be enabled at the same
* time.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder failIfNoConsumers(
String failIfNoConsumers) {
doSetProperty("failIfNoConsumers", failIfNoConsumers);
return this;
}
/**
* Whether the producer should be started lazy (on the first message).
* By starting lazy you can use this to allow CamelContext and routes to
* startup in situations where a producer may otherwise fail during
* starting and cause the route to fail being started. By deferring this
* startup to be lazy then the startup failure can be handled during
* routing messages via Camel's routing error handlers. Beware that when
* the first message is processed then creating and starting the
* producer may take a little time and prolong the total processing time
* of the processing.
*
* The option is a: <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder lazyStartProducer(
boolean lazyStartProducer) {
doSetProperty("lazyStartProducer", lazyStartProducer);
return this;
}
/**
* Whether the producer should be started lazy (on the first message).
* By starting lazy you can use this to allow CamelContext and routes to
* startup in situations where a producer may otherwise fail during
* starting and cause the route to fail being started. By deferring this
* startup to be lazy then the startup failure can be handled during
* routing messages via Camel's routing error handlers. Beware that when
* the first message is processed then creating and starting the
* producer may take a little time and prolong the total processing time
* of the processing.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder lazyStartProducer(
String lazyStartProducer) {
doSetProperty("lazyStartProducer", lazyStartProducer);
return this;
}
/**
* offerTimeout (in milliseconds) can be added to the block case when
* queue is full. You can disable timeout by using 0 or a negative
* value.
*
* The option is a: <code>long</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder offerTimeout(long offerTimeout) {
doSetProperty("offerTimeout", offerTimeout);
return this;
}
/**
* offerTimeout (in milliseconds) can be added to the block case when
* queue is full. You can disable timeout by using 0 or a negative
* value.
*
* The option will be converted to a <code>long</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder offerTimeout(String offerTimeout) {
doSetProperty("offerTimeout", offerTimeout);
return this;
}
/**
* Timeout (in milliseconds) before a SEDA producer will stop waiting
* for an asynchronous task to complete. You can disable timeout by
* using 0 or a negative value.
*
* The option is a: <code>long</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder timeout(long timeout) {
doSetProperty("timeout", timeout);
return this;
}
/**
* Timeout (in milliseconds) before a SEDA producer will stop waiting
* for an asynchronous task to complete. You can disable timeout by
* using 0 or a negative value.
*
* The option will be converted to a <code>long</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder timeout(String timeout) {
doSetProperty("timeout", timeout);
return this;
}
/**
* Option to specify whether the caller should wait for the async task
* to complete or not before continuing. The following three options are
* supported: Always, Never or IfReplyExpected. The first two values are
* self-explanatory. The last value, IfReplyExpected, will only wait if
* the message is Request Reply based. The default option is
* IfReplyExpected.
*
* The option is a: <code>org.apache.camel.WaitForTaskToComplete</code>
* type.
*
* Group: producer
*/
default StubEndpointProducerBuilder waitForTaskToComplete(
WaitForTaskToComplete waitForTaskToComplete) {
doSetProperty("waitForTaskToComplete", waitForTaskToComplete);
return this;
}
/**
* Option to specify whether the caller should wait for the async task
* to complete or not before continuing. The following three options are
* supported: Always, Never or IfReplyExpected. The first two values are
* self-explanatory. The last value, IfReplyExpected, will only wait if
* the message is Request Reply based. The default option is
* IfReplyExpected.
*
* The option will be converted to a
* <code>org.apache.camel.WaitForTaskToComplete</code> type.
*
* Group: producer
*/
default StubEndpointProducerBuilder waitForTaskToComplete(
String waitForTaskToComplete) {
doSetProperty("waitForTaskToComplete", waitForTaskToComplete);
return this;
}
}
/**
* Advanced builder for endpoint producers for the Stub component.
*/
public interface AdvancedStubEndpointProducerBuilder
extends
EndpointProducerBuilder {
default StubEndpointProducerBuilder basic() {
return (StubEndpointProducerBuilder) this;
}
/**
* Whether the endpoint should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities.
*
* The option is a: <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointProducerBuilder basicPropertyBinding(
boolean basicPropertyBinding) {
doSetProperty("basicPropertyBinding", basicPropertyBinding);
return this;
}
/**
* Whether the endpoint should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointProducerBuilder basicPropertyBinding(
String basicPropertyBinding) {
doSetProperty("basicPropertyBinding", basicPropertyBinding);
return this;
}
/**
* Define the queue instance which will be used by the endpoint. This
* option is only for rare use-cases where you want to use a custom
* queue instance.
*
* The option is a: <code>java.util.concurrent.BlockingQueue</code>
* type.
*
* Group: advanced
*/
default AdvancedStubEndpointProducerBuilder queue(BlockingQueue queue) {
doSetProperty("queue", queue);
return this;
}
/**
* Define the queue instance which will be used by the endpoint. This
* option is only for rare use-cases where you want to use a custom
* queue instance.
*
* The option will be converted to a
* <code>java.util.concurrent.BlockingQueue</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointProducerBuilder queue(String queue) {
doSetProperty("queue", queue);
return this;
}
/**
* Sets whether synchronous processing should be strictly used, or Camel
* is allowed to use asynchronous processing (if supported).
*
* The option is a: <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointProducerBuilder synchronous(
boolean synchronous) {
doSetProperty("synchronous", synchronous);
return this;
}
/**
* Sets whether synchronous processing should be strictly used, or Camel
* is allowed to use asynchronous processing (if supported).
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointProducerBuilder synchronous(
String synchronous) {
doSetProperty("synchronous", synchronous);
return this;
}
}
/**
* Builder for endpoint for the Stub component.
*/
public interface StubEndpointBuilder
extends
StubEndpointConsumerBuilder, StubEndpointProducerBuilder {
default AdvancedStubEndpointBuilder advanced() {
return (AdvancedStubEndpointBuilder) this;
}
/**
* The maximum capacity of the SEDA queue (i.e., the number of messages
* it can hold). Will by default use the defaultSize set on the SEDA
* component.
*
* The option is a: <code>int</code> type.
*
* Group: common
*/
default StubEndpointBuilder size(int size) {
doSetProperty("size", size);
return this;
}
/**
* The maximum capacity of the SEDA queue (i.e., the number of messages
* it can hold). Will by default use the defaultSize set on the SEDA
* component.
*
* The option will be converted to a <code>int</code> type.
*
* Group: common
*/
default StubEndpointBuilder size(String size) {
doSetProperty("size", size);
return this;
}
}
/**
* Advanced builder for endpoint for the Stub component.
*/
public interface AdvancedStubEndpointBuilder
extends
AdvancedStubEndpointConsumerBuilder, AdvancedStubEndpointProducerBuilder {
default StubEndpointBuilder basic() {
return (StubEndpointBuilder) this;
}
/**
* Whether the endpoint should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities.
*
* The option is a: <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointBuilder basicPropertyBinding(
boolean basicPropertyBinding) {
doSetProperty("basicPropertyBinding", basicPropertyBinding);
return this;
}
/**
* Whether the endpoint should use basic property binding (Camel 2.x) or
* the newer property binding with additional capabilities.
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointBuilder basicPropertyBinding(
String basicPropertyBinding) {
doSetProperty("basicPropertyBinding", basicPropertyBinding);
return this;
}
/**
* Define the queue instance which will be used by the endpoint. This
* option is only for rare use-cases where you want to use a custom
* queue instance.
*
* The option is a: <code>java.util.concurrent.BlockingQueue</code>
* type.
*
* Group: advanced
*/
default AdvancedStubEndpointBuilder queue(BlockingQueue queue) {
doSetProperty("queue", queue);
return this;
}
/**
* Define the queue instance which will be used by the endpoint. This
* option is only for rare use-cases where you want to use a custom
* queue instance.
*
* The option will be converted to a
* <code>java.util.concurrent.BlockingQueue</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointBuilder queue(String queue) {
doSetProperty("queue", queue);
return this;
}
/**
* Sets whether synchronous processing should be strictly used, or Camel
* is allowed to use asynchronous processing (if supported).
*
* The option is a: <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointBuilder synchronous(boolean synchronous) {
doSetProperty("synchronous", synchronous);
return this;
}
/**
* Sets whether synchronous processing should be strictly used, or Camel
* is allowed to use asynchronous processing (if supported).
*
* The option will be converted to a <code>boolean</code> type.
*
* Group: advanced
*/
default AdvancedStubEndpointBuilder synchronous(String synchronous) {
doSetProperty("synchronous", synchronous);
return this;
}
}
/**
* Stub (camel-stub)
* The stub component provides a simple way to stub out any physical
* endpoints while in development or testing.
*
* Category: core,testing
* Available as of version: 2.10
* Maven coordinates: org.apache.camel:camel-stub
*
* Syntax: <code>stub:name</code>
*
* Path parameter: name (required)
* Name of queue
*/
default StubEndpointBuilder stub(String path) {
class StubEndpointBuilderImpl extends AbstractEndpointBuilder implements StubEndpointBuilder, AdvancedStubEndpointBuilder {
public StubEndpointBuilderImpl(String path) {
super("stub", path);
}
}
return new StubEndpointBuilderImpl(path);
}
}