public class NonBlockingFiniteRoundRobinStrategy extends Object implements IMergerStrategy
Merger
stage.
This strategy returns a non-null element from the next non-empty input port.
If an input port is empty, its successor input port is checked.
If the successor input port is also empty, the successor's successor input port is checked and so on.
Hereby, each input port is checked at most once.
This strategy continues with the successor of the input port used in the previous run.Constructor and Description |
---|
NonBlockingFiniteRoundRobinStrategy() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getNextInput(Merger<T> merger) |
void |
onPortRemoved(InputPort<?> removedInputPort) |
public <T> T getNextInput(Merger<T> merger)
getNextInput
in interface IMergerStrategy
public void onPortRemoved(InputPort<?> removedInputPort)
onPortRemoved
in interface PortRemovedListener<InputPort<?>>
Copyright © 2015–2020. All rights reserved.