T - the type of record which is sent through the attached output gatepublic class RoundRobinChannelSelector<T extends IOReadableWritable> extends Object implements ChannelSelector<T>
ChannelSelector interface. It represents a simple round-robin
strategy, i.e. regardless of the record every attached exactly one output channel is selected at a time.| Constructor and Description |
|---|
RoundRobinChannelSelector()
Constructs a new default channel selector.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
selectChannels(T record,
int numberOfOutputChannels)
Called to determine to which attached
OutputChannel objects the given record shall be forwarded. |
public RoundRobinChannelSelector()
public int[] selectChannels(T record, int numberOfOutputChannels)
ChannelSelectorOutputChannel objects the given record shall be forwarded.selectChannels in interface ChannelSelector<T extends IOReadableWritable>record - the record to the determine the output channels fornumberOfOutputChannels - the total number of output channels which are attached to respective output gateCopyright © 2014 The Apache Software Foundation. All rights reserved.