Class DirectPoller<S>

java.lang.Object
org.springframework.batch.poller.DirectPoller<S>
Type Parameters:
S - the type of the result
All Implemented Interfaces:
Poller<S>

public class DirectPoller<S> extends Object implements Poller<S>
A Poller that uses the callers thread to poll for a result as soon as it is asked for. This is often appropriate if you expect a result relatively quickly, or if there is only one such result expected (otherwise it is more efficient to use a background thread to do the polling).
Author:
Dave Syer
  • Constructor Details

    • DirectPoller

      public DirectPoller(long interval)
  • Method Details