Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3519

Add a "Skip Poll" Advice Class

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 4.1 RC1
    • Component/s: Core
    • Labels:

      Description

      Provide more flexibility over that provided by the Spring Trigger by providing an advice that can be configured on a Poller.

      The advice should take an injected SkipPollStrategy (e.g. boolean shouldSkipPoll()).

      This would allow, for example, the poller to look at a downstream task executor and only proceed with the poll if the executor has available threads (comparing maxPoolSize with activeCount ).

      See the StackOverflow link for the use case.

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            grussell Gary Russell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: