Description

Stops a gateway if it is running and starts it up.

Category

Event Gateway Development

Syntax

public void restart()

See also

startstop

Usage

In most cases, you implement this method as a call to the stop method followed by a start method, but you may be able to optimize the restart method based on the type of gateway.

Example

The following example is the ColdFusion SocketGateway class restart method:

public void restart()
{
stop();
start();
}

 

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy