public abstract class AbstractWordpressConsumer
extends org.apache.camel.impl.ScheduledPollConsumer
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AbstractWordpressConsumer(WordpressEndpoint endpoint,
org.apache.camel.Processor processor) |
AbstractWordpressConsumer(WordpressEndpoint endpoint,
org.apache.camel.Processor processor,
ScheduledExecutorService scheduledExecutorService) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureService(WordpressComponentConfiguration configuration)
Should be implemented to configure the endpoint calls.
|
WordpressComponentConfiguration |
getConfiguration() |
boolean |
isGreedy() |
protected abstract int |
poll() |
protected void |
process(Object result)
Message processor
|
afterPoll, beforePoll, doShutdown, doStart, doStop, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, processEmptyMessage, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startScheduler
createUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString
doResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public AbstractWordpressConsumer(WordpressEndpoint endpoint, org.apache.camel.Processor processor)
public AbstractWordpressConsumer(WordpressEndpoint endpoint, org.apache.camel.Processor processor, ScheduledExecutorService scheduledExecutorService)
public WordpressComponentConfiguration getConfiguration()
public boolean isGreedy()
isGreedy
in class org.apache.camel.impl.ScheduledPollConsumer
protected void configureService(WordpressComponentConfiguration configuration)
configuration
- the endpoint configurationprotected abstract int poll() throws Exception
poll
in class org.apache.camel.impl.ScheduledPollConsumer
Exception
protected final void process(Object result)
result
- Apache Camel