Class ChoreographyEngine

java.lang.Object
com.tnsai.coordination.choreography.ChoreographyEngine

public final class ChoreographyEngine extends Object
Executes a choreography specification using decentralized agent coordination. Each agent reacts to events autonomously based on the declarative spec.

Example usage:


 ChoreographyEngine engine = ChoreographyEngine.builder()
     .spec(spec)
     .agent("validator", validatorAgent)
     .agent("billing", billingAgent)
     .timeout(Duration.ofMinutes(2))
     .build();

 ChoreographyResult result = engine.execute();