beanstalk endpoint

beanstalk endpoint

Name Kind Type Required Deprecated Default Value Enum Values Description
connectionSettings path java.lang.String false Connection settings host:port/tube
command parameter org.apache.camel.component.beanstalk.BeanstalkCommand false bury
release
put
touch
delete
kick
jobPriority parameter long false 1000 Job priority. (0 is the highest, see Beanstalk protocol)
jobDelay parameter int false 0 Job delay in seconds.
jobTimeToRun parameter int false 60 Job time to run in seconds. (when 0, the beanstalkd daemon raises it to 1 automatically, see Beanstalk protocol)
onFailure parameter org.apache.camel.component.beanstalk.BeanstalkCommand false bury
release
put
touch
delete
kick
Command to use when processing failed.
useBlockIO parameter boolean false true Whether to use blockIO.
awaitJob parameter boolean false true Whether to wait for job to complete before ack the job from beanstalk
startScheduler parameter boolean false true
initialDelay parameter long false 1000
delay parameter long false 500
timeUnit parameter java.util.concurrent.TimeUnit false MILLISECONDS NANOSECONDS
MICROSECONDS
MILLISECONDS
SECONDS
MINUTES
HOURS
DAYS
useFixedDelay parameter boolean false true
pollStrategy parameter org.apache.camel.spi.PollingConsumerPollStrategy false
runLoggingLevel parameter org.apache.camel.LoggingLevel false TRACE DEBUG
ERROR
INFO
TRACE
WARN
OFF
sendEmptyMessageWhenIdle parameter boolean false
greedy parameter boolean false
scheduler parameter org.apache.camel.spi.ScheduledPollConsumerScheduler false spring
quartz2
schedulerProperties parameter java.util.Map false
scheduledExecutorService parameter java.util.concurrent.ScheduledExecutorService false
backoffMultiplier parameter int false
backoffIdleThreshold parameter int false
backoffErrorThreshold parameter int false
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

beanstalk consumer

PollingConsumer to read Beanstalk jobs.

The consumer may delete the job immediately or based on successful {@link Exchange} completion. The behavior is configurable by consumer.awaitJob flag (by default true)

This consumer will add a {@link Synchronization} object to every {@link Exchange} object it creates in order to react on successful exchange completion or failure.

In the case of successful completion, Beanstalk's delete method is called upon the job. In the case of failure the default reaction is to call bury.

The reaction on failures is configurable: possible variants are "bury", "release" or "delete"