Class EsbTriggerControl
java.lang.Object
com.kingsrook.qqq.esb.runtime.EsbTriggerControl
Pause, resume, or restart a trigger's consumers on every node (spec sections
6 and 8). Each call sends { "action", "triggerName" } to the non-durable
control topic (qqq.esb.control) on the trigger's provider; every running
QEsbRuntime listening there - this node's included - applies it to its own
runner (see EsbControlChannel). The call returns once the message is sent,
not once the nodes have applied it.
The trigger is looked up in the QContext's instance, by its name
(processName.destinationName); an unknown trigger is a QException, as is a
message that can't be sent (e.g., with the broker down).
Pause state isn't persisted: a node that starts (or restarts) later uses the
trigger's startPaused.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidPause the trigger on every node: consumers close, and messages wait on the broker.static voidRestart the trigger's consumers on every node: each builds a new session and consumer (a paused trigger stays paused).static voidResume the trigger on every node.
-
Method Details
-
pause
Pause the trigger on every node: consumers close, and messages wait on the broker.- Throws:
QException
-
resume
Resume the trigger on every node.- Throws:
QException
-
restart
Restart the trigger's consumers on every node: each builds a new session and consumer (a paused trigger stays paused).- Throws:
QException
-