waitForEvent

The Java application is responsible for periodic checking of the events from the custom server. By calling waitForEvent with a timeout (in seconds), the application can pick up any events in the queue. If an event has already been sent to the application from the custom server, waitForEvent will return immediately and the event can be retrieved by calling getEvent on the returned CTICiscoReturn object. The status (getStatus on the returned object) should also be checked to confirm a successful status value of 0.

Syntax

CTICiscoReturn waitForEvent(Integer Timeout);

Parameters

Integer Timeout
Specify the timeout in seconds to wait for an event from the custom server.

Return properties

Integer Status
Returns an Integer value from the list of status codes that describes the result of this request (see Table 3.) To extract this property, call the getStatus method on the returned CTICiscoReturn object.
Integer Event
The unsolicited event sent from the custom server (see Unsolicited event codes.)