public static interface SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
| Modifier and Type | Method and Description |
|---|---|
default SoroushBotEndpointBuilderFactory.AdvancedSoroushBotEndpointConsumerBuilder |
advanced() |
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
authorizationToken(String authorizationToken)
The authorization token for using the bot.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
backOffStrategy(String backOffStrategy)
The strategy to backoff in case of connection failure.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
bridgeErrorHandler(boolean bridgeErrorHandler)
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.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
bridgeErrorHandler(String bridgeErrorHandler)
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.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
concurrentConsumers(int concurrentConsumers)
Number of Thread created by consumer in the route.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
concurrentConsumers(String concurrentConsumers)
Number of Thread created by consumer in the route.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
connectionTimeout(int connectionTimeout)
Connection timeout in ms when connecting to soroush API.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
connectionTimeout(String connectionTimeout)
Connection timeout in ms when connecting to soroush API.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
maxConnectionRetry(int maxConnectionRetry)
Maximum connection retry when fail to connect to soroush API, if the
quota is reached, MaximumConnectionRetryReachedException is thrown
for that message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
maxConnectionRetry(String maxConnectionRetry)
Maximum connection retry when fail to connect to soroush API, if the
quota is reached, MaximumConnectionRetryReachedException is thrown
for that message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
maxRetryWaitingTime(long maxRetryWaitingTime)
Maximum amount of time (in millisecond) a thread wait before retrying
failed request.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
maxRetryWaitingTime(String maxRetryWaitingTime)
Maximum amount of time (in millisecond) a thread wait before retrying
failed request.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
queueCapacityPerThread(int queueCapacityPerThread)
Maximum capacity of each queue when concurrentConsumers is greater
than 1.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
queueCapacityPerThread(String queueCapacityPerThread)
Maximum capacity of each queue when concurrentConsumers is greater
than 1.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
reconnectIdleConnectionTimeout(long reconnectIdleConnectionTimeout)
The timeout in millisecond to reconnect the existing getMessage
connection to ensure that the connection is always live and does not
dead without notifying the bot.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
reconnectIdleConnectionTimeout(String reconnectIdleConnectionTimeout)
The timeout in millisecond to reconnect the existing getMessage
connection to ensure that the connection is always live and does not
dead without notifying the bot.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
retryExponentialCoefficient(long retryExponentialCoefficient)
Coefficient to compute back off time when using Exponential Back Off
strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
retryExponentialCoefficient(String retryExponentialCoefficient)
Coefficient to compute back off time when using Exponential Back Off
strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
retryLinearIncrement(long retryLinearIncrement)
The amount of time (in millisecond) which adds to waiting time when
using Linear back off strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
retryLinearIncrement(String retryLinearIncrement)
The amount of time (in millisecond) which adds to waiting time when
using Linear back off strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
retryWaitingTime(long retryWaitingTime)
Waiting time before retry failed request (Millisecond).
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder |
retryWaitingTime(String retryWaitingTime)
Waiting time before retry failed request (Millisecond).
|
default SoroushBotEndpointBuilderFactory.AdvancedSoroushBotEndpointConsumerBuilder advanced()
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder connectionTimeout(int connectionTimeout)
int type.
Default: 30000
Group: commondefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder connectionTimeout(String connectionTimeout)
int type.
Default: 30000
Group: commondefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder maxConnectionRetry(int maxConnectionRetry)
int type.
Default: 4
Group: commondefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder maxConnectionRetry(String maxConnectionRetry)
int type.
Default: 4
Group: commondefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
boolean type.
Default: false
Group: consumerdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
boolean type.
Default: false
Group: consumerdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder concurrentConsumers(int concurrentConsumers)
int type.
Default: 1
Group: consumerdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder concurrentConsumers(String concurrentConsumers)
int type.
Default: 1
Group: consumerdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder queueCapacityPerThread(int queueCapacityPerThread)
int type.
Default: 0
Group: consumerdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder queueCapacityPerThread(String queueCapacityPerThread)
int type.
Default: 0
Group: consumerdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder backOffStrategy(String backOffStrategy)
java.lang.String type.
Default: Exponential
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder maxRetryWaitingTime(long maxRetryWaitingTime)
long type.
Default: 3600000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder maxRetryWaitingTime(String maxRetryWaitingTime)
long type.
Default: 3600000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder reconnectIdleConnectionTimeout(long reconnectIdleConnectionTimeout)
long type.
Default: 300000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder reconnectIdleConnectionTimeout(String reconnectIdleConnectionTimeout)
long type.
Default: 300000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder retryExponentialCoefficient(long retryExponentialCoefficient)
long type.
Default: 2
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder retryExponentialCoefficient(String retryExponentialCoefficient)
long type.
Default: 2
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder retryLinearIncrement(long retryLinearIncrement)
long type.
Default: 10000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder retryLinearIncrement(String retryLinearIncrement)
long type.
Default: 10000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder retryWaitingTime(long retryWaitingTime)
long type.
Default: 1000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder retryWaitingTime(String retryWaitingTime)
long type.
Default: 1000
Group: schedulingdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointConsumerBuilder authorizationToken(String authorizationToken)
java.lang.String type.
Group: securityApache Camel