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
- Author:
- Gary Russell, Michael Forstner, Artem Bilan, David Turanski
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classA key for a thread-local store and its related directory pair.
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterReceive(boolean messageReceived, MessageSource<?> source) Invoked after the message source receive() method.voidbeforeReceive(MessageSource<?> source) Invoked before the message source receive() method.Return the currentRotationPolicy.KeyDirectory.
- 
Method Details- 
beforeReceiveInvoked before the message source receive() method.- Parameters:
- source- the message source.
 
- 
afterReceiveInvoked after the message source receive() method.- Parameters:
- messageReceived- true if a message was received.
- source- the message source.
 
- 
getCurrentRotationPolicy.KeyDirectory getCurrent()Return the currentRotationPolicy.KeyDirectory.- Returns:
- the current RotationPolicy.KeyDirectory
- Since:
- 5.2
 
 
-