Class PollSkipAdvice
java.lang.Object
org.springframework.integration.scheduling.PollSkipAdvice
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class PollSkipAdvice
extends java.lang.Object
implements org.aopalliance.intercept.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
-
Constructor Summary
Constructors Constructor Description PollSkipAdvice()PollSkipAdvice(PollSkipStrategy strategy) -
Method Summary
Modifier and Type Method Description java.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)
-
Constructor Details
-
PollSkipAdvice
public PollSkipAdvice() -
PollSkipAdvice
-
-
Method Details
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-