Class CounterSwitchPipe

All Implemented Interfaces:
HasTransactionAttribute, IConfigurable, IConfigurationAware, IForwardTarget, INamedObject, IPipe, IScopeProvider, IWithParameters, EventThrowing, HasStatistics, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Forward(name="*", description="the exitState, based on the number of received messages") @EnterpriseIntegrationPattern(ROUTER) public class CounterSwitchPipe extends FixedForwardPipe
Selects an exitState, based on the number of received messages by this pipe. The exitState is the difference (subtraction) between the divisor and the remainder of [number of received messages] modulus divisor. This will always be an integer between 1 and divisor, inclusive.
Author:
Peter Leeuwenburgh
  • Constructor Details

    • CounterSwitchPipe

      public CounterSwitchPipe()
  • Method Details