@UriEndpoint(scheme="beanstalk",
title="Beanstalk",
syntax="beanstalk:connectionSettings",
consumerClass=BeanstalkConsumer.class,
label="messaging")
public class BeanstalkEndpoint
extends org.apache.camel.impl.ScheduledPollEndpoint
| Constructor and Description |
|---|
BeanstalkEndpoint(String uri,
org.apache.camel.Component component,
ConnectionSettings conn,
String connectionSettings) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer()
Creates Camel producer.
|
BeanstalkCommand |
getCommand() |
ConnectionSettings |
getConn() |
ConnectionSettings |
getConnection() |
String |
getConnectionSettings() |
int |
getJobDelay() |
long |
getJobPriority() |
int |
getJobTimeToRun() |
BeanstalkCommand |
getOnFailure() |
boolean |
isAwaitJob() |
boolean |
isSingleton() |
boolean |
isUseBlockIO() |
void |
setAwaitJob(boolean awaitJob)
Whether to wait for job to complete before ack the job from beanstalk
|
void |
setCommand(BeanstalkCommand command) |
void |
setJobDelay(int jobDelay)
Job delay in seconds.
|
void |
setJobPriority(long jobPriority)
Job priority.
|
void |
setJobTimeToRun(int jobTimeToRun)
Job time to run in seconds.
|
void |
setOnFailure(BeanstalkCommand onFailure)
Command to use when processing failed.
|
void |
setUseBlockIO(boolean useBlockIO)
Whether to use blockIO.
|
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic BeanstalkEndpoint(String uri, org.apache.camel.Component component, ConnectionSettings conn, String connectionSettings)
public String getConnectionSettings()
public ConnectionSettings getConnection()
public ConnectionSettings getConn()
public BeanstalkCommand getCommand()
public void setCommand(BeanstalkCommand command)
public long getJobPriority()
public void setJobPriority(long jobPriority)
public int getJobDelay()
public void setJobDelay(int jobDelay)
public int getJobTimeToRun()
public void setJobTimeToRun(int jobTimeToRun)
public BeanstalkCommand getOnFailure()
public void setOnFailure(BeanstalkCommand onFailure)
public boolean isUseBlockIO()
public void setUseBlockIO(boolean useBlockIO)
public boolean isAwaitJob()
public void setAwaitJob(boolean awaitJob)
public org.apache.camel.Producer createProducer()
throws Exception
BeanstalkComponent URI) it
will create one of the producer implementations.Producer instanceIllegalArgumentException - when ConnectionSettings cannot
create a writable ClientExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic boolean isSingleton()
Apache Camel