Class StandardRotationPolicy

java.lang.Object
org.springframework.integration.file.remote.aop.StandardRotationPolicy
All Implemented Interfaces:
RotationPolicy

public class StandardRotationPolicy extends Object implements RotationPolicy
Standard rotation policy; iterates over key/directory pairs; when the end is reached, starts again at the beginning. If the fair option is true the rotation occurs on every poll, regardless of result. Otherwise, rotation occurs when the current pair returns no message.

Subclasses implement onRotation(MessageSource<?> source) to configure the MessageSource on each rotation.

Since:
5.2
Author:
Gary Russell, Michael Forstner, Artem Bilan, David Turanski