public interface PollingConsumerPollingStrategy
Consumers to influence the PollingConsumer.
For example this is used by schedule based consumers to be able to suspend/resume
upon polling using a PollingConsumer.EventDrivenPollingConsumer| Modifier and Type | Method and Description |
|---|---|
void |
afterPoll()
Callback invoked after the poll.
|
long |
beforePoll(long timeout)
Callback invoked before the poll.
|
void |
onInit()
Callback invoked when the consumer is initialized such as when the
PollingConsumer starts. |
void onInit() throws Exception
PollingConsumer starts.Exception - can be thrown if error initializing.long beforePoll(long timeout) throws Exception
timeout - the timeoutException - can be thrown if error occurredApache Camel