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, startSchedulercreateUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic 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.ScheduledPollConsumerprotected void configureService(WordpressComponentConfiguration configuration)
configuration - the endpoint configurationprotected abstract int poll()
throws Exception
poll in class org.apache.camel.impl.ScheduledPollConsumerExceptionprotected final void process(Object result)
result - Apache Camel