Class SimplePollSkipStrategy

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

@ManagedResource
public class SimplePollSkipStrategy
extends java.lang.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
  • Constructor Summary

    Constructors 
    Constructor Description
    SimplePollSkipStrategy()  
  • Method Summary

    Modifier and Type Method Description
    void reset()
    Resume polling at the next Trigger event.
    boolean skipPoll()
    Return true if this poll should be skipped.
    void skipPolls()
    Skip future polls.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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.