public static interface SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
| Modifier and Type | Method and Description |
|---|---|
default SoroushBotEndpointBuilderFactory.AdvancedSoroushBotEndpointProducerBuilder |
advanced() |
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
authorizationToken(String authorizationToken)
The authorization token for using the bot.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
autoDownload(boolean autoDownload)
Automatically download SoroushMessage.fileUrl and
SoroushMessage.thumbnailUrl if exists for the message and store them
in SoroushMessage.file and SoroushMessage.thumbnail field.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
autoDownload(String autoDownload)
Automatically download SoroushMessage.fileUrl and
SoroushMessage.thumbnailUrl if exists for the message and store them
in SoroushMessage.file and SoroushMessage.thumbnail field.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
autoUploadFile(boolean autoUploadFile)
Automatically upload attachments when a message goes to the
sendMessage endpoint and the SoroushMessage.file
(SoroushMessage.thumbnail) has been set and
SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl) is null.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
autoUploadFile(String autoUploadFile)
Automatically upload attachments when a message goes to the
sendMessage endpoint and the SoroushMessage.file
(SoroushMessage.thumbnail) has been set and
SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl) is null.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
backOffStrategy(String backOffStrategy)
The strategy to backoff in case of connection failure.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
connectionTimeout(int connectionTimeout)
Connection timeout in ms when connecting to soroush API.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
connectionTimeout(String connectionTimeout)
Connection timeout in ms when connecting to soroush API.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
downloadThumbnail(boolean downloadThumbnail)
If true, when downloading an attached file, thumbnail will be
downloaded if provided in the message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
downloadThumbnail(String downloadThumbnail)
If true, when downloading an attached file, thumbnail will be
downloaded if provided in the message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
forceDownload(boolean forceDownload)
Force to download SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl)
if exists, even if the SoroushMessage.file(SoroushMessage.thumbnail)
was not null in that message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
forceDownload(String forceDownload)
Force to download SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl)
if exists, even if the SoroushMessage.file(SoroushMessage.thumbnail)
was not null in that message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
forceUpload(boolean forceUpload)
Force to upload SoroushMessage.file(SoroushMessage.thumbnail) if
exists, even if the
SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl) is not null in
the message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
forceUpload(String forceUpload)
Force to upload SoroushMessage.file(SoroushMessage.thumbnail) if
exists, even if the
SoroushMessage.fileUrl(SoroushMessage.thumbnailUrl) is not null in
the message.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
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.SoroushBotEndpointProducerBuilder |
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.SoroushBotEndpointProducerBuilder |
maxRetryWaitingTime(long maxRetryWaitingTime)
Maximum amount of time (in millisecond) a thread wait before retrying
failed request.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
maxRetryWaitingTime(String maxRetryWaitingTime)
Maximum amount of time (in millisecond) a thread wait before retrying
failed request.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
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.SoroushBotEndpointProducerBuilder |
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.SoroushBotEndpointProducerBuilder |
retryExponentialCoefficient(long retryExponentialCoefficient)
Coefficient to compute back off time when using Exponential Back Off
strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
retryExponentialCoefficient(String retryExponentialCoefficient)
Coefficient to compute back off time when using Exponential Back Off
strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
retryLinearIncrement(long retryLinearIncrement)
The amount of time (in millisecond) which adds to waiting time when
using Linear back off strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
retryLinearIncrement(String retryLinearIncrement)
The amount of time (in millisecond) which adds to waiting time when
using Linear back off strategy.
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
retryWaitingTime(long retryWaitingTime)
Waiting time before retry failed request (Millisecond).
|
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder |
retryWaitingTime(String retryWaitingTime)
Waiting time before retry failed request (Millisecond).
|
default SoroushBotEndpointBuilderFactory.AdvancedSoroushBotEndpointProducerBuilder advanced()
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder connectionTimeout(int connectionTimeout)
connectionTimeout - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder connectionTimeout(String connectionTimeout)
connectionTimeout - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder maxConnectionRetry(int maxConnectionRetry)
maxConnectionRetry - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder maxConnectionRetry(String maxConnectionRetry)
maxConnectionRetry - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder autoDownload(boolean autoDownload)
autoDownload - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder autoDownload(String autoDownload)
autoDownload - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder autoUploadFile(boolean autoUploadFile)
autoUploadFile - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder autoUploadFile(String autoUploadFile)
autoUploadFile - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder downloadThumbnail(boolean downloadThumbnail)
downloadThumbnail - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder downloadThumbnail(String downloadThumbnail)
downloadThumbnail - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder forceDownload(boolean forceDownload)
forceDownload - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder forceDownload(String forceDownload)
forceDownload - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder forceUpload(boolean forceUpload)
forceUpload - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder forceUpload(String forceUpload)
forceUpload - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
lazyStartProducer - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
lazyStartProducer - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder backOffStrategy(String backOffStrategy)
backOffStrategy - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder maxRetryWaitingTime(long maxRetryWaitingTime)
maxRetryWaitingTime - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder maxRetryWaitingTime(String maxRetryWaitingTime)
maxRetryWaitingTime - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder reconnectIdleConnectionTimeout(long reconnectIdleConnectionTimeout)
reconnectIdleConnectionTimeout - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder reconnectIdleConnectionTimeout(String reconnectIdleConnectionTimeout)
reconnectIdleConnectionTimeout - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryExponentialCoefficient(long retryExponentialCoefficient)
retryExponentialCoefficient - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryExponentialCoefficient(String retryExponentialCoefficient)
retryExponentialCoefficient - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryLinearIncrement(long retryLinearIncrement)
retryLinearIncrement - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryLinearIncrement(String retryLinearIncrement)
retryLinearIncrement - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryWaitingTime(long retryWaitingTime)
retryWaitingTime - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryWaitingTime(String retryWaitingTime)
retryWaitingTime - the value to setdefault SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder authorizationToken(String authorizationToken)
authorizationToken - the value to setApache Camel