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, getBlockTimeout, getDelegateConsumer, getInterruptedExceptionHandler, getProcessor, getQueueCapacity, getQueueSize, handleInterruptedException, isBlockWhenFull, isSingleton, setBlockTimeout, setBlockWhenFull, setInterruptedExceptionHandler
getEndpoint, getExceptionHandler, handleException, setExceptionHandler, toString
build, doBuild, doInit, doResume, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public GenericFilePollingConsumer(GenericFileEndpoint endpoint) throws Exception
Exception
protected org.apache.camel.Consumer createConsumer() throws Exception
createConsumer
in class org.apache.camel.support.EventDrivenPollingConsumer
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.EventDrivenPollingConsumer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.EventDrivenPollingConsumer
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.EventDrivenPollingConsumer
Exception
protected GenericFileConsumer getConsumer()
getConsumer
in class org.apache.camel.support.EventDrivenPollingConsumer
public org.apache.camel.Exchange receiveNoWait()
receiveNoWait
in interface org.apache.camel.PollingConsumer
receiveNoWait
in class org.apache.camel.support.EventDrivenPollingConsumer
public org.apache.camel.Exchange receive()
receive
in interface org.apache.camel.PollingConsumer
receive
in class org.apache.camel.support.EventDrivenPollingConsumer
public org.apache.camel.Exchange receive(long timeout)
receive
in interface org.apache.camel.PollingConsumer
receive
in class org.apache.camel.support.EventDrivenPollingConsumer
protected int doReceive(long timeout)
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
process
in class org.apache.camel.support.EventDrivenPollingConsumer
Exception
Apache Camel