Package-level declarations

Types

Link copied to clipboard

First-available policy. Always selects the channel with the lowest index among available channels. Equivalent to a priority policy that prefers earlier channels.

Link copied to clipboard
abstract class GenericPolicy<ChannelT>

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.

Link copied to clipboard

Priority policy. Selects the channel with the highest priority according to the provided comparator.

Link copied to clipboard

Random policy. Randomly selects from the available channels with equal probability.

Link copied to clipboard

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

Link copied to clipboard

Wraps a generic policy to create a ForkPolicy for use in fork nodes.

Link copied to clipboard

Wraps a generic policy to create a JoinPolicy for use in join nodes.