disconnect(time)
The disconnect(time) function flushes the cache and then closes any open connection to the event server.
Synopsis
disconnect (max_seconds_to_wait)
Arguments
Note: For all values, control is
returned to the caller as soon as the cache is emptied.
- < 0
- Wait forever or until the cache is emptied. If the server is down, this routine will not return.
- = 0
- Send events from the cache while the connection remains up. This could take a long time if the cache is large.
- >= 0
- Stop emptying the cache after the specified number of seconds.
Examples
public synchronized void disconnect(int max_seconds_to_wait)