GenericForkPolicy
Adapter that wraps a GenericPolicy to implement the ForkPolicy interface. Allows generic policies to be used for fork node routing.
Parameters
T
the type of entities being routed
policy
the GenericPolicy that handles channel selection logic
Functions
Link copied to clipboard
context(_: Simulator)
open override fun initialize(source: PushInputChannel<T>, destinations: List<PushOutputChannel<T>>)
open override fun initialize(source: PushInputChannel<T>, destinations: List<PushOutputChannel<T>>)
Initializes the policy with the source and destination channels. Sets up initial state and event listeners for channel open/close events.
Link copied to clipboard
Called when a destination channel closes.
Link copied to clipboard
Called when a destination channel opens.
Link copied to clipboard
Selects the destination channel for an entity.