Interface RotationPolicy

All Known Implementing Classes:
StandardRotationPolicy

public interface RotationPolicy
A strategy for rotating advices to allow reconfiguring the message source before and/or after a poll.
Since:
5.2
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  RotationPolicy.KeyDirectory
    A key for a thread-local store and its related directory pair.
  • Method Summary

    Modifier and Type Method Description
    void afterReceive​(boolean messageReceived, org.springframework.integration.core.MessageSource<?> source)
    Invoked after the message source receive() method.
    void beforeReceive​(org.springframework.integration.core.MessageSource<?> source)
    Invoked before the message source receive() method.
    RotationPolicy.KeyDirectory getCurrent()
    Return the current RotationPolicy.KeyDirectory.
  • Method Details

    • beforeReceive

      void beforeReceive​(org.springframework.integration.core.MessageSource<?> source)
      Invoked before the message source receive() method.
      Parameters:
      source - the message source.
    • afterReceive

      void afterReceive​(boolean messageReceived, org.springframework.integration.core.MessageSource<?> source)
      Invoked after the message source receive() method.
      Parameters:
      messageReceived - true if a message was received.
      source - the message source.
    • getCurrent

      Return the current RotationPolicy.KeyDirectory.
      Returns:
      the current RotationPolicy.KeyDirectory
      Since:
      5.2