private void handleHeartBeat(int size) { GuLog.Info("HeartbearActionManager mHeartbeatActions"); HeartbeatCountDownLatch mHeartbeatCountDownLatch = new HeartbeatCountDownLatch(); mHeartbeatCountDownLatch.SetCount(size); mHeartbeatCountDownLatch.setAction(() => { mHeartbeatManager.notifyHeartBeatDone(); }); for (int i = 0; i < size; i++) { IAbsDoHeartbeatAction action = mHeartbeatActions[i]; action.setHeartbeatCountDownLatch(mHeartbeatCountDownLatch); action.onStart(); } }
public void removeEventListener(IAbsDoHeartbeatAction mNetNotify) { mHeartbeatActions.Remove(mNetNotify); }
public void addEventListener(IAbsDoHeartbeatAction mNetNotify) { mHeartbeatActions.Add(mNetNotify); }