Class SimplePollSkipStrategy

java.lang.Object
org.springframework.integration.scheduling.SimplePollSkipStrategy
All Implemented Interfaces:
PollSkipStrategy

@ManagedResource public class SimplePollSkipStrategy extends Object implements PollSkipStrategy
A simple PollSkipStrategy to be used with a PollSkipAdvice. Invoke skipPolls() to start skipping polls; invoke reset() to resume polling.
Since:
4.2.5
Author:
Gary Russell
  • Constructor Details

    • SimplePollSkipStrategy

      public SimplePollSkipStrategy()
  • Method Details

    • skipPoll

      public boolean skipPoll()
      Description copied from interface: PollSkipStrategy
      Return true if this poll should be skipped.
      Specified by:
      skipPoll in interface PollSkipStrategy
      Returns:
      true to skip.
    • skipPolls

      @ManagedOperation public void skipPolls()
      Skip future polls.
    • reset

      @ManagedOperation public void reset()
      Resume polling at the next Trigger event.