Interface SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
SoroushBotEndpointBuilderFactory.SoroushBotEndpointBuilder
- Enclosing interface:
- SoroushBotEndpointBuilderFactory
public static interface SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the Soroush component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method 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).
-
-
-
Method Detail
-
advanced
default SoroushBotEndpointBuilderFactory.AdvancedSoroushBotEndpointProducerBuilder advanced()
-
connectionTimeout
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder connectionTimeout(int connectionTimeout)
Connection timeout in ms when connecting to soroush API. The option is a:int
type. Default: 30000 Group: common
-
connectionTimeout
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder connectionTimeout(String connectionTimeout)
Connection timeout in ms when connecting to soroush API. The option will be converted to aint
type. Default: 30000 Group: common
-
maxConnectionRetry
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. The option is a:int
type. Default: 4 Group: common
-
maxConnectionRetry
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. The option will be converted to aint
type. Default: 4 Group: common
-
autoDownload
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. The option is a:boolean
type. Default: false Group: producer
-
autoDownload
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. The option will be converted to aboolean
type. Default: false Group: producer
-
autoUploadFile
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. The option is a:boolean
type. Default: true Group: producer
-
autoUploadFile
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. The option will be converted to aboolean
type. Default: true Group: producer
-
downloadThumbnail
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder downloadThumbnail(boolean downloadThumbnail)
If true, when downloading an attached file, thumbnail will be downloaded if provided in the message. Otherwise, only the file will be downloaded. The option is a:boolean
type. Default: true Group: producer
-
downloadThumbnail
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder downloadThumbnail(String downloadThumbnail)
If true, when downloading an attached file, thumbnail will be downloaded if provided in the message. Otherwise, only the file will be downloaded. The option will be converted to aboolean
type. Default: true Group: producer
-
forceDownload
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. The option is a:boolean
type. Default: false Group: producer
-
forceDownload
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. The option will be converted to aboolean
type. Default: false Group: producer
-
forceUpload
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. The option is a:boolean
type. Default: false Group: producer
-
forceUpload
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. The option will be converted to aboolean
type. Default: false Group: producer
-
lazyStartProducer
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer)
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:boolean
type. Default: false Group: producer
-
lazyStartProducer
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder lazyStartProducer(String lazyStartProducer)
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 aboolean
type. Default: false Group: producer
-
backOffStrategy
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder backOffStrategy(String backOffStrategy)
The strategy to backoff in case of connection failure. Currently 3 strategies are supported: 1. Exponential (default): It multiply retryWaitingTime by retryExponentialCoefficient after each connection failure. 2. Linear: It increase retryWaitingTime by retryLinearIncrement after each connection failure. 3. Fixed: Always use retryWaitingTime as the time between retries. The option is a:java.lang.String
type. Default: Exponential Group: scheduling
-
maxRetryWaitingTime
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder maxRetryWaitingTime(long maxRetryWaitingTime)
Maximum amount of time (in millisecond) a thread wait before retrying failed request. The option is a:long
type. Default: 3600000 Group: scheduling
-
maxRetryWaitingTime
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder maxRetryWaitingTime(String maxRetryWaitingTime)
Maximum amount of time (in millisecond) a thread wait before retrying failed request. The option will be converted to along
type. Default: 3600000 Group: scheduling
-
reconnectIdleConnectionTimeout
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. this value should not be changed. The option is a:long
type. Default: 300000 Group: scheduling
-
reconnectIdleConnectionTimeout
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. this value should not be changed. The option will be converted to along
type. Default: 300000 Group: scheduling
-
retryExponentialCoefficient
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryExponentialCoefficient(long retryExponentialCoefficient)
Coefficient to compute back off time when using Exponential Back Off strategy. The option is a:long
type. Default: 2 Group: scheduling
-
retryExponentialCoefficient
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryExponentialCoefficient(String retryExponentialCoefficient)
Coefficient to compute back off time when using Exponential Back Off strategy. The option will be converted to along
type. Default: 2 Group: scheduling
-
retryLinearIncrement
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryLinearIncrement(long retryLinearIncrement)
The amount of time (in millisecond) which adds to waiting time when using Linear back off strategy. The option is a:long
type. Default: 10000 Group: scheduling
-
retryLinearIncrement
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryLinearIncrement(String retryLinearIncrement)
The amount of time (in millisecond) which adds to waiting time when using Linear back off strategy. The option will be converted to along
type. Default: 10000 Group: scheduling
-
retryWaitingTime
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryWaitingTime(long retryWaitingTime)
Waiting time before retry failed request (Millisecond). If backOffStrategy is not Fixed this is the based value for computing back off waiting time. the first retry is always happen immediately after failure and retryWaitingTime do not apply to the first retry. The option is a:long
type. Default: 1000 Group: scheduling
-
retryWaitingTime
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder retryWaitingTime(String retryWaitingTime)
Waiting time before retry failed request (Millisecond). If backOffStrategy is not Fixed this is the based value for computing back off waiting time. the first retry is always happen immediately after failure and retryWaitingTime do not apply to the first retry. The option will be converted to along
type. Default: 1000 Group: scheduling
-
authorizationToken
default SoroushBotEndpointBuilderFactory.SoroushBotEndpointProducerBuilder authorizationToken(String authorizationToken)
The authorization token for using the bot. if uri path does not contain authorization token, this token will be used. The option is a:java.lang.String
type. Group: security
-
-