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 Summary
Constructors Constructor Description SimplePollSkipStrategy()
-
Method Summary
-
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 interfacePollSkipStrategy
- Returns:
- true to skip.
-
skipPolls
Skip future polls. -
reset
Resume polling at the nextTrigger
event.
-