public class GenericFilePollingConsumer
extends org.apache.camel.support.EventDrivenPollingConsumer
| Constructor and Description |
|---|
GenericFilePollingConsumer(GenericFileEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Consumer |
createConsumer() |
protected int |
doReceive(long timeout) |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
protected GenericFileConsumer |
getConsumer() |
void |
process(org.apache.camel.Exchange exchange) |
protected void |
processEmptyMessage()
No messages to poll so send an empty message instead.
|
org.apache.camel.Exchange |
receive() |
org.apache.camel.Exchange |
receive(long timeout) |
org.apache.camel.Exchange |
receiveNoWait() |
afterPoll, beforePoll, doBuild, doInit, getBlockTimeout, getDelegateConsumer, getInterruptedExceptionHandler, getProcessor, getQueueCapacity, getQueueSize, handleInterruptedException, isBlockWhenFull, isCopy, isSingleton, prepareCopy, setBlockTimeout, setBlockWhenFull, setCopy, setInterruptedExceptionHandlercreateExchange, getEndpoint, getExceptionHandler, handleException, releaseExchange, setExceptionHandler, toStringbuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic GenericFilePollingConsumer(GenericFileEndpoint endpoint)
protected org.apache.camel.Consumer createConsumer()
throws Exception
createConsumer in class org.apache.camel.support.EventDrivenPollingConsumerExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.EventDrivenPollingConsumerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.EventDrivenPollingConsumerExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.EventDrivenPollingConsumerExceptionprotected GenericFileConsumer getConsumer()
getConsumer in class org.apache.camel.support.EventDrivenPollingConsumerpublic org.apache.camel.Exchange receiveNoWait()
receiveNoWait in interface org.apache.camel.PollingConsumerreceiveNoWait in class org.apache.camel.support.EventDrivenPollingConsumerpublic org.apache.camel.Exchange receive()
receive in interface org.apache.camel.PollingConsumerreceive in class org.apache.camel.support.EventDrivenPollingConsumerpublic org.apache.camel.Exchange receive(long timeout)
receive in interface org.apache.camel.PollingConsumerreceive in class org.apache.camel.support.EventDrivenPollingConsumerprotected int doReceive(long timeout)
public void process(org.apache.camel.Exchange exchange)
throws Exception
process in interface org.apache.camel.Processorprocess in class org.apache.camel.support.EventDrivenPollingConsumerExceptionApache Camel