Package-level declarations
Types
First-available policy. Always selects the channel with the lowest index among available channels. Equivalent to a priority policy that prefers earlier channels.
Generic base class for simple routing policies used in both fork and join nodes. Provides a unified interface for channel selection and availability tracking that can be adapted to either push (fork) or pull (join) semantics.
Priority policy. Selects the channel with the highest priority according to the provided comparator.
Random policy. Randomly selects from the available channels with equal probability.
Round-robin policy. Selects channels in a cyclic order, ensuring fair distribution across available channels. Each time a channel is selected, the pointer advances to the next channel.
Functions
Wraps a generic policy to create a ForkPolicy for use in fork nodes.
Wraps a generic policy to create a JoinPolicy for use in join nodes.