blob: c4edd98376c8f464d05bfb5b4adba14eb78af063 [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.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.stream.*;
import javax.annotation.Generated;
import org.apache.camel.builder.EndpointConsumerBuilder;
import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
* Asynchronously send/receive Exchanges between Camel routes running on
* potentially distinct JVMs/hosts backed by Hazelcast BlockingQueue.
*
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
public interface HazelcastSedaEndpointBuilderFactory {
/**
* Builder for endpoint consumers for the Hazelcast SEDA component.
*/
public interface HazelcastSedaEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default AdvancedHazelcastSedaEndpointConsumerBuilder advanced() {
return (AdvancedHazelcastSedaEndpointConsumerBuilder) this;
}
/**
* To specify a default operation to use, if no operation header has
* been provided.
*
* The option is a:
* <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type.
*
* Group: common
*
* @param defaultOperation the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder defaultOperation(
org.apache.camel.component.hazelcast.HazelcastOperation defaultOperation) {
doSetProperty("defaultOperation", defaultOperation);
return this;
}
/**
* To specify a default operation to use, if no operation header has
* been provided.
*
* The option will be converted to a
* <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type.
*
* Group: common
*
* @param defaultOperation the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder defaultOperation(
String defaultOperation) {
doSetProperty("defaultOperation", defaultOperation);
return this;
}
/**
* The hazelcast instance reference which can be used for hazelcast
* endpoint.
*
* The option is a:
* <code>com.hazelcast.core.HazelcastInstance</code> type.
*
* Group: common
*
* @param hazelcastInstance the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder hazelcastInstance(
com.hazelcast.core.HazelcastInstance hazelcastInstance) {
doSetProperty("hazelcastInstance", hazelcastInstance);
return this;
}
/**
* The hazelcast instance reference which can be used for hazelcast
* endpoint.
*
* The option will be converted to a
* <code>com.hazelcast.core.HazelcastInstance</code> type.
*
* Group: common
*
* @param hazelcastInstance the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder hazelcastInstance(
String hazelcastInstance) {
doSetProperty("hazelcastInstance", hazelcastInstance);
return this;
}
/**
* The hazelcast instance reference name which can be used for hazelcast
* endpoint. If you don't specify the instance reference, camel use the
* default hazelcast instance from the camel-hazelcast instance.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: common
*
* @param hazelcastInstanceName the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder hazelcastInstanceName(
String hazelcastInstanceName) {
doSetProperty("hazelcastInstanceName", hazelcastInstanceName);
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.
*
* Default: false
* Group: consumer
*
* @param bridgeErrorHandler the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder 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.
*
* Default: false
* Group: consumer
*
* @param bridgeErrorHandler the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder bridgeErrorHandler(
String bridgeErrorHandler) {
doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
return this;
}
/**
* To use concurrent consumers polling from the SEDA queue.
*
* The option is a: <code>int</code> type.
*
* Default: 1
* Group: seda
*
* @param concurrentConsumers the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder concurrentConsumers(
int concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* To use concurrent consumers polling from the SEDA queue.
*
* The option will be converted to a <code>int</code> type.
*
* Default: 1
* Group: seda
*
* @param concurrentConsumers the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder concurrentConsumers(
String concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* Milliseconds before consumer continues polling after an error has
* occurred.
*
* The option is a: <code>int</code> type.
*
* Default: 1000
* Group: seda
*
* @param onErrorDelay the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder onErrorDelay(
int onErrorDelay) {
doSetProperty("onErrorDelay", onErrorDelay);
return this;
}
/**
* Milliseconds before consumer continues polling after an error has
* occurred.
*
* The option will be converted to a <code>int</code> type.
*
* Default: 1000
* Group: seda
*
* @param onErrorDelay the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder onErrorDelay(
String onErrorDelay) {
doSetProperty("onErrorDelay", onErrorDelay);
return this;
}
/**
* The timeout used when consuming from the SEDA queue. 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.
*
* Default: 1000
* Group: seda
*
* @param pollTimeout the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder pollTimeout(int pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* The timeout used when consuming from the SEDA queue. 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.
*
* Default: 1000
* Group: seda
*
* @param pollTimeout the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder pollTimeout(
String pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* If set to true then the consumer runs in transaction mode, where the
* messages in the seda queue will only be removed if the transaction
* commits, which happens when the processing is complete.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: seda
*
* @param transacted the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder transacted(
boolean transacted) {
doSetProperty("transacted", transacted);
return this;
}
/**
* If set to true then the consumer runs in transaction mode, where the
* messages in the seda queue will only be removed if the transaction
* commits, which happens when the processing is complete.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
* Group: seda
*
* @param transacted the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder transacted(
String transacted) {
doSetProperty("transacted", transacted);
return this;
}
/**
* If set to true the whole Exchange will be transfered. If header or
* body contains not serializable objects, they will be skipped.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: seda
*
* @param transferExchange the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder transferExchange(
boolean transferExchange) {
doSetProperty("transferExchange", transferExchange);
return this;
}
/**
* If set to true the whole Exchange will be transfered. If header or
* body contains not serializable objects, they will be skipped.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
* Group: seda
*
* @param transferExchange the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointConsumerBuilder transferExchange(
String transferExchange) {
doSetProperty("transferExchange", transferExchange);
return this;
}
}
/**
* Advanced builder for endpoint consumers for the Hazelcast SEDA component.
*/
public interface AdvancedHazelcastSedaEndpointConsumerBuilder
extends
EndpointConsumerBuilder {
default HazelcastSedaEndpointConsumerBuilder basic() {
return (HazelcastSedaEndpointConsumerBuilder) 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)
*
* @param exceptionHandler the value to set
* @return the dsl builder
*/
default AdvancedHazelcastSedaEndpointConsumerBuilder exceptionHandler(
org.apache.camel.spi.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)
*
* @param exceptionHandler the value to set
* @return the dsl builder
*/
default AdvancedHazelcastSedaEndpointConsumerBuilder 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)
*
* @param exchangePattern the value to set
* @return the dsl builder
*/
default AdvancedHazelcastSedaEndpointConsumerBuilder exchangePattern(
org.apache.camel.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)
*
* @param exchangePattern the value to set
* @return the dsl builder
*/
default AdvancedHazelcastSedaEndpointConsumerBuilder exchangePattern(
String exchangePattern) {
doSetProperty("exchangePattern", exchangePattern);
return this;
}
}
/**
* Builder for endpoint producers for the Hazelcast SEDA component.
*/
public interface HazelcastSedaEndpointProducerBuilder
extends
EndpointProducerBuilder {
default AdvancedHazelcastSedaEndpointProducerBuilder advanced() {
return (AdvancedHazelcastSedaEndpointProducerBuilder) this;
}
/**
* To specify a default operation to use, if no operation header has
* been provided.
*
* The option is a:
* <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type.
*
* Group: common
*
* @param defaultOperation the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder defaultOperation(
org.apache.camel.component.hazelcast.HazelcastOperation defaultOperation) {
doSetProperty("defaultOperation", defaultOperation);
return this;
}
/**
* To specify a default operation to use, if no operation header has
* been provided.
*
* The option will be converted to a
* <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type.
*
* Group: common
*
* @param defaultOperation the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder defaultOperation(
String defaultOperation) {
doSetProperty("defaultOperation", defaultOperation);
return this;
}
/**
* The hazelcast instance reference which can be used for hazelcast
* endpoint.
*
* The option is a:
* <code>com.hazelcast.core.HazelcastInstance</code> type.
*
* Group: common
*
* @param hazelcastInstance the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder hazelcastInstance(
com.hazelcast.core.HazelcastInstance hazelcastInstance) {
doSetProperty("hazelcastInstance", hazelcastInstance);
return this;
}
/**
* The hazelcast instance reference which can be used for hazelcast
* endpoint.
*
* The option will be converted to a
* <code>com.hazelcast.core.HazelcastInstance</code> type.
*
* Group: common
*
* @param hazelcastInstance the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder hazelcastInstance(
String hazelcastInstance) {
doSetProperty("hazelcastInstance", hazelcastInstance);
return this;
}
/**
* The hazelcast instance reference name which can be used for hazelcast
* endpoint. If you don't specify the instance reference, camel use the
* default hazelcast instance from the camel-hazelcast instance.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: common
*
* @param hazelcastInstanceName the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder hazelcastInstanceName(
String hazelcastInstanceName) {
doSetProperty("hazelcastInstanceName", hazelcastInstanceName);
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.
*
* Default: false
* Group: producer
*
* @param lazyStartProducer the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder 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.
*
* Default: false
* Group: producer
*
* @param lazyStartProducer the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder lazyStartProducer(
String lazyStartProducer) {
doSetProperty("lazyStartProducer", lazyStartProducer);
return this;
}
/**
* To use concurrent consumers polling from the SEDA queue.
*
* The option is a: <code>int</code> type.
*
* Default: 1
* Group: seda
*
* @param concurrentConsumers the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder concurrentConsumers(
int concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* To use concurrent consumers polling from the SEDA queue.
*
* The option will be converted to a <code>int</code> type.
*
* Default: 1
* Group: seda
*
* @param concurrentConsumers the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder concurrentConsumers(
String concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* Milliseconds before consumer continues polling after an error has
* occurred.
*
* The option is a: <code>int</code> type.
*
* Default: 1000
* Group: seda
*
* @param onErrorDelay the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder onErrorDelay(
int onErrorDelay) {
doSetProperty("onErrorDelay", onErrorDelay);
return this;
}
/**
* Milliseconds before consumer continues polling after an error has
* occurred.
*
* The option will be converted to a <code>int</code> type.
*
* Default: 1000
* Group: seda
*
* @param onErrorDelay the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder onErrorDelay(
String onErrorDelay) {
doSetProperty("onErrorDelay", onErrorDelay);
return this;
}
/**
* The timeout used when consuming from the SEDA queue. 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.
*
* Default: 1000
* Group: seda
*
* @param pollTimeout the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder pollTimeout(int pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* The timeout used when consuming from the SEDA queue. 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.
*
* Default: 1000
* Group: seda
*
* @param pollTimeout the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder pollTimeout(
String pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* If set to true then the consumer runs in transaction mode, where the
* messages in the seda queue will only be removed if the transaction
* commits, which happens when the processing is complete.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: seda
*
* @param transacted the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder transacted(
boolean transacted) {
doSetProperty("transacted", transacted);
return this;
}
/**
* If set to true then the consumer runs in transaction mode, where the
* messages in the seda queue will only be removed if the transaction
* commits, which happens when the processing is complete.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
* Group: seda
*
* @param transacted the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder transacted(
String transacted) {
doSetProperty("transacted", transacted);
return this;
}
/**
* If set to true the whole Exchange will be transfered. If header or
* body contains not serializable objects, they will be skipped.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: seda
*
* @param transferExchange the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder transferExchange(
boolean transferExchange) {
doSetProperty("transferExchange", transferExchange);
return this;
}
/**
* If set to true the whole Exchange will be transfered. If header or
* body contains not serializable objects, they will be skipped.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
* Group: seda
*
* @param transferExchange the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointProducerBuilder transferExchange(
String transferExchange) {
doSetProperty("transferExchange", transferExchange);
return this;
}
}
/**
* Advanced builder for endpoint producers for the Hazelcast SEDA component.
*/
public interface AdvancedHazelcastSedaEndpointProducerBuilder
extends
EndpointProducerBuilder {
default HazelcastSedaEndpointProducerBuilder basic() {
return (HazelcastSedaEndpointProducerBuilder) this;
}
}
/**
* Builder for endpoint for the Hazelcast SEDA component.
*/
public interface HazelcastSedaEndpointBuilder
extends
HazelcastSedaEndpointConsumerBuilder,
HazelcastSedaEndpointProducerBuilder {
default AdvancedHazelcastSedaEndpointBuilder advanced() {
return (AdvancedHazelcastSedaEndpointBuilder) this;
}
/**
* To specify a default operation to use, if no operation header has
* been provided.
*
* The option is a:
* <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type.
*
* Group: common
*
* @param defaultOperation the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder defaultOperation(
org.apache.camel.component.hazelcast.HazelcastOperation defaultOperation) {
doSetProperty("defaultOperation", defaultOperation);
return this;
}
/**
* To specify a default operation to use, if no operation header has
* been provided.
*
* The option will be converted to a
* <code>org.apache.camel.component.hazelcast.HazelcastOperation</code> type.
*
* Group: common
*
* @param defaultOperation the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder defaultOperation(
String defaultOperation) {
doSetProperty("defaultOperation", defaultOperation);
return this;
}
/**
* The hazelcast instance reference which can be used for hazelcast
* endpoint.
*
* The option is a:
* <code>com.hazelcast.core.HazelcastInstance</code> type.
*
* Group: common
*
* @param hazelcastInstance the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder hazelcastInstance(
com.hazelcast.core.HazelcastInstance hazelcastInstance) {
doSetProperty("hazelcastInstance", hazelcastInstance);
return this;
}
/**
* The hazelcast instance reference which can be used for hazelcast
* endpoint.
*
* The option will be converted to a
* <code>com.hazelcast.core.HazelcastInstance</code> type.
*
* Group: common
*
* @param hazelcastInstance the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder hazelcastInstance(
String hazelcastInstance) {
doSetProperty("hazelcastInstance", hazelcastInstance);
return this;
}
/**
* The hazelcast instance reference name which can be used for hazelcast
* endpoint. If you don't specify the instance reference, camel use the
* default hazelcast instance from the camel-hazelcast instance.
*
* The option is a: <code>java.lang.String</code> type.
*
* Group: common
*
* @param hazelcastInstanceName the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder hazelcastInstanceName(
String hazelcastInstanceName) {
doSetProperty("hazelcastInstanceName", hazelcastInstanceName);
return this;
}
/**
* To use concurrent consumers polling from the SEDA queue.
*
* The option is a: <code>int</code> type.
*
* Default: 1
* Group: seda
*
* @param concurrentConsumers the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder concurrentConsumers(
int concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* To use concurrent consumers polling from the SEDA queue.
*
* The option will be converted to a <code>int</code> type.
*
* Default: 1
* Group: seda
*
* @param concurrentConsumers the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder concurrentConsumers(
String concurrentConsumers) {
doSetProperty("concurrentConsumers", concurrentConsumers);
return this;
}
/**
* Milliseconds before consumer continues polling after an error has
* occurred.
*
* The option is a: <code>int</code> type.
*
* Default: 1000
* Group: seda
*
* @param onErrorDelay the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder onErrorDelay(int onErrorDelay) {
doSetProperty("onErrorDelay", onErrorDelay);
return this;
}
/**
* Milliseconds before consumer continues polling after an error has
* occurred.
*
* The option will be converted to a <code>int</code> type.
*
* Default: 1000
* Group: seda
*
* @param onErrorDelay the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder onErrorDelay(String onErrorDelay) {
doSetProperty("onErrorDelay", onErrorDelay);
return this;
}
/**
* The timeout used when consuming from the SEDA queue. 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.
*
* Default: 1000
* Group: seda
*
* @param pollTimeout the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder pollTimeout(int pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* The timeout used when consuming from the SEDA queue. 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.
*
* Default: 1000
* Group: seda
*
* @param pollTimeout the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder pollTimeout(String pollTimeout) {
doSetProperty("pollTimeout", pollTimeout);
return this;
}
/**
* If set to true then the consumer runs in transaction mode, where the
* messages in the seda queue will only be removed if the transaction
* commits, which happens when the processing is complete.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: seda
*
* @param transacted the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder transacted(boolean transacted) {
doSetProperty("transacted", transacted);
return this;
}
/**
* If set to true then the consumer runs in transaction mode, where the
* messages in the seda queue will only be removed if the transaction
* commits, which happens when the processing is complete.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
* Group: seda
*
* @param transacted the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder transacted(String transacted) {
doSetProperty("transacted", transacted);
return this;
}
/**
* If set to true the whole Exchange will be transfered. If header or
* body contains not serializable objects, they will be skipped.
*
* The option is a: <code>boolean</code> type.
*
* Default: false
* Group: seda
*
* @param transferExchange the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder transferExchange(
boolean transferExchange) {
doSetProperty("transferExchange", transferExchange);
return this;
}
/**
* If set to true the whole Exchange will be transfered. If header or
* body contains not serializable objects, they will be skipped.
*
* The option will be converted to a <code>boolean</code>
* type.
*
* Default: false
* Group: seda
*
* @param transferExchange the value to set
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder transferExchange(
String transferExchange) {
doSetProperty("transferExchange", transferExchange);
return this;
}
}
/**
* Advanced builder for endpoint for the Hazelcast SEDA component.
*/
public interface AdvancedHazelcastSedaEndpointBuilder
extends
AdvancedHazelcastSedaEndpointConsumerBuilder,
AdvancedHazelcastSedaEndpointProducerBuilder {
default HazelcastSedaEndpointBuilder basic() {
return (HazelcastSedaEndpointBuilder) this;
}
}
public interface HazelcastSedaBuilders {
/**
* Hazelcast SEDA (camel-hazelcast)
* Asynchronously send/receive Exchanges between Camel routes running on
* potentially distinct JVMs/hosts backed by Hazelcast BlockingQueue.
*
* Category: cache,datagrid
* Since: 2.7
* Maven coordinates: org.apache.camel:camel-hazelcast
*
* Syntax: <code>hazelcast-seda:cacheName</code>
*
* Path parameter: cacheName (required)
* The name of the cache
*
* @param path cacheName
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder hazelcastSeda(String path) {
return HazelcastSedaEndpointBuilderFactory.endpointBuilder("hazelcast-seda", path);
}
/**
* Hazelcast SEDA (camel-hazelcast)
* Asynchronously send/receive Exchanges between Camel routes running on
* potentially distinct JVMs/hosts backed by Hazelcast BlockingQueue.
*
* Category: cache,datagrid
* Since: 2.7
* Maven coordinates: org.apache.camel:camel-hazelcast
*
* Syntax: <code>hazelcast-seda:cacheName</code>
*
* Path parameter: cacheName (required)
* The name of the cache
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
* @param path cacheName
* @return the dsl builder
*/
default HazelcastSedaEndpointBuilder hazelcastSeda(
String componentName,
String path) {
return HazelcastSedaEndpointBuilderFactory.endpointBuilder(componentName, path);
}
}
static HazelcastSedaEndpointBuilder endpointBuilder(
String componentName,
String path) {
class HazelcastSedaEndpointBuilderImpl extends AbstractEndpointBuilder implements HazelcastSedaEndpointBuilder, AdvancedHazelcastSedaEndpointBuilder {
public HazelcastSedaEndpointBuilderImpl(String path) {
super(componentName, path);
}
}
return new HazelcastSedaEndpointBuilderImpl(path);
}
}