gatewayAction

Starts, stops or restarts an event gateway instance.

gatewayAction(gatewayID, action [, waitForIt] [, timeout]) → returns string

This function requires Lucee 6.2.0.75 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

gatewayID string
Required

The ID of the gateway instance.

action string
Required

The action: start, stop or restart.

waitForIt boolean
Default: true

When true, waits for the action to finish.

timeout numeric

How long to wait when waitForIt is true. Defaults to one second.

Examples
Sample code invoking the gatewayAction function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub