Class SimplePollSkipStrategy
java.lang.Object
org.springframework.integration.scheduling.SimplePollSkipStrategy
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
SimplePollSkipStrategy
public SimplePollSkipStrategy()
-
-
Method Details
-
skipPoll
public boolean skipPoll()Description copied from interface:PollSkipStrategyReturn true if this poll should be skipped.- Specified by:
skipPollin interfacePollSkipStrategy- Returns:
- true to skip.
-
skipPolls
Skip future polls. -
reset
Resume polling at the nextTriggerevent.
-