org.apache.camel
Interface PollingConsumerPollingStrategy

All Known Implementing Classes:
DefaultScheduledPollConsumer, FileConsumer, GenericFileConsumer, ScheduledPollConsumer

public interface PollingConsumerPollingStrategy

Strategy that allows 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.

See Also:
EventDrivenPollingConsumer

Method Summary
 void afterPoll()
          Callback invoked after the poll.
 void beforePoll()
          Callback invoked before the poll.
 void onInit()
          Callback invoked when the consumer is initialized such as when the PollingConsumer starts.
 

Method Detail

onInit

void onInit()
            throws Exception
Callback invoked when the consumer is initialized such as when the PollingConsumer starts.

Throws:
Exception - can be thrown if error initializing.

beforePoll

void beforePoll()
                throws Exception
Callback invoked before the poll.

Throws:
Exception - can be thrown if error occurred

afterPoll

void afterPoll()
               throws Exception
Callback invoked after the poll.

Throws:
Exception - can be thrown if error occurred


Apache CAMEL