WaitStrategyRegistrar

Registry for managing wait strategies. Provides thread-safe operations for registering, unregistering, and retrieving wait strategies by their command IDs.

Inheritors

Functions

Link copied to clipboard
abstract operator fun contains(waitCommandId: String): Boolean

Checks if a wait strategy is registered for the given command ID.

Link copied to clipboard
abstract fun get(waitCommandId: String): WaitStrategy?

Retrieves a wait strategy by its command ID.

Link copied to clipboard
open fun next(signal: WaitSignal): Boolean

Forwards a wait signal to the appropriate wait strategy. Retrieves the strategy by signal's wait command ID and calls next() on it.

Link copied to clipboard
abstract fun register(waitStrategy: WaitStrategy): WaitStrategy?

Registers a wait strategy if not already present. Similar to Map.putIfAbsent - returns existing strategy if one exists for the same ID.

Link copied to clipboard
abstract fun unregister(waitCommandId: String): WaitStrategy?

Unregisters a wait strategy by its command ID. Similar to Map.remove - removes and returns the strategy if it exists.