notifyEventsAsync

notifyEventsAsync(recv:   JadeMultiWorkerTcpTransportIF;
                  option: Integer);

The notifyEventsAsync method of the JadeMultiWorkerTcpTransport class registers the receiver object on which the event callback methods will be invoked.

The value of the recv parameter must be an instance of a class that implements the JadeMultiWorkerTcpTransportIF interface.

The valid values for the option parameter are represented by the JadeMultiWorkerTcpTransport class constants listed in the following table.

Constant Integer Value Occurs…
Notify_Continuous 0 Continuously until disabled by a call to the cancelNotify method
Notify_OneShot 1 Once only

Use the Notify_Continuous value if you want to have callbacks automatically re-armed after a callback method exits. Conversely, use the Notify_OneShot value if you want to re-arm callbacks manually as part of each callback method. You can switch between these notification modes, if required.