17 lines
599 B
Java
17 lines
599 B
Java
package dev.ltms.bridged.placement;
|
|
|
|
/**
|
|
* How {@code bridged} chooses a worker profile when a spawn names none. Implementations are
|
|
* deterministic and unit-testable; the caller (the composite launcher) handles failover retries.
|
|
*/
|
|
public interface PlacementPolicy {
|
|
|
|
/**
|
|
* Pick one candidate from the configured set.
|
|
*
|
|
* @throws java.lang.IllegalStateException when no candidate is available, with a message naming
|
|
* whether every profile is at capacity or unreachable
|
|
*/
|
|
PlacementCandidate select(PlacementContext ctx);
|
|
}
|