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 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 Details

    • PollSkipAdvice

      public PollSkipAdvice()
    • PollSkipAdvice

      public PollSkipAdvice(PollSkipStrategy strategy)
  • Method Details

    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable