terminateAgent

Request graceful termination of the entire agent process. Convenience extension that delegates to AgentProcess.terminateAgent.

Kotlin usage:

processContext.terminateAgent("reason")

Java usage:

import static com.embabel.agent.api.termination.Termination.terminateAgent;

terminateAgent(processContext, "reason");

Parameters

reason

Human-readable explanation for termination

See also