Deployment engineering
Runtime family decision
Illustrative workload selection. Executed Java 21 offline model; hosted cloud behavior not established.
Formal Syntax & Structure
java syntaxjava
choose(needsHost, needsCluster, eventOnly)Working Example
Example Snippetjava
public class Main { enum RuntimeKind { VM, MANAGED_CONTAINER, KUBERNETES, FUNCTION } static RuntimeKind choose(boolean needsHost, boolean needsCluster, boolean eventOnly) { if (needsHost) return RuntimeKind.VM; if (needsCluster) return RuntimeKind.KUBERNETES; if (eventOnly) return RuntimeKind.FUNCTION; return RuntimeKind.MANAGED_CONTAINER; } public static void main(String[] args) { System.out.println(choose(false,false,false)); System.out.println(choose(false,false,true)); }}