Interface PollingConsumerPollingStrategy
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoidCallback invoked after the poll.longbeforePoll(long timeout) Callback invoked before the poll.voidonInit()Callback invoked when the consumer is initialized such as when thePollingConsumerstarts.
-
Method Details
-
onInit
Callback invoked when the consumer is initialized such as when thePollingConsumerstarts.- Throws:
Exception- can be thrown if error initializing.
-
beforePoll
-
afterPoll
-