/* * Register interest in certain system events. The {@link * OtpNodeStatus OtpNodeStatus} handler object contains callback * methods, that will be called when certain events occur. * * @param handler the callback object to register. To clear the * handler, specify null as the handler to use. * **/ public virtual void registerStatusHandler(OtpNodeStatus handler) { lock (this) { this.handler = handler; } }
private void init() { serial = 0; pidCount = 1; portCount = 1; refId = new int[3]; refId[0] = 1; refId[1] = 0; refId[2] = 0; handler = new OtpNodeStatus(); }
public void registerStatusHandler(OtpNodeStatus.ConnectionStatusDelegate callback) { this.handler.registerStatusHandler(callback); }