concept poller in category java

This is an excerpt from Manning's book Spring Integration in Action.
postReceive, like preReceive, applies only to pollable channels. It’s invoked after a message is read from a channel but before it’s returned to the component that called receive(). If it returns null, then no message is received. This allows the implementer to control what, if anything, is actually received by the poller.
Poller configuration is the most common time-related concern. Pollers are active components that pull new data from external message sources or trigger the handling of the existing messages stored in the system’s queues. Such an asynchronous mode of operation, in which the responsibility of acknowledging the existence of new data falls on the service provider, increases the overall robustness of the system, but it also introduces a lag that’s ultimately related to how aspects such as frequency, timeout, or number of messages processed per polling cycle are configured. Timed events are not just about polling, though, so we show you how to set up a scheduled producer for invoking existing beans and sending out messages at specified times.
Let’s consider the case of a poller that runs every second. Let’s also assume that not one but two messages become available on the message source. With what we configured so far, here’s what will happen: when the first polling cycle begins, the poller reads the first message and starts processing by delivering it to an endpoint. The second message will be left unprocessed until the next polling cycle.