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.Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • invoke

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