Class PollSkipAdvice
java.lang.Object
org.springframework.integration.scheduling.PollSkipAdvice
- All Implemented Interfaces:
Advice
,Interceptor
,MethodInterceptor
public class PollSkipAdvice extends Object implements MethodInterceptor
An advice that can be added to a poller's advice chain that determines
whether a poll should be skipped or not. May be used to temporarily suspend
polling when some downstream condition exists in the flow.
- Since:
- 4.1
- Author:
- Gary Russell, Artem Bilan
-
Constructor Summary
Constructors Constructor Description PollSkipAdvice()
PollSkipAdvice(PollSkipStrategy strategy)
-
Method Summary
Modifier and Type Method Description Object
invoke(MethodInvocation invocation)
-
Constructor Details
-
PollSkipAdvice
public PollSkipAdvice() -
PollSkipAdvice
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceMethodInterceptor
- Throws:
Throwable
-