protected internal static void NotifyListener(IEventExecutor eventExecutor, IFuture <V> future, IFutureListener <V> listener) { ObjectUtil.CheckNotNull(eventExecutor, "eventExecutor"); ObjectUtil.CheckNotNull(future, "future"); ObjectUtil.CheckNotNull(listener, "listener"); _NotifyListenerWithStackOverFlowProtection(eventExecutor, future, listener); }
new public IPromise <V> RemoveListener(IFutureListener <V> listener) { ObjectUtil.CheckNotNull(listener, "listener"); lock (syncLock) { _RemoveListener(listener); } return(this); }
new public IPromise <V> AddListener(IFutureListener <V> listener) { ObjectUtil.CheckNotNull(listener, "listener"); lock (syncLock) { _AddListener(listener); } if (IsDone) { _NotifyListeners(); } return(this); }
new public IPromise <V> RemoveListeners(params IFutureListener <V>[] listeners) { ObjectUtil.CheckNotNull(listeners, "listeners"); lock (syncLock) { IFutureListener <V> listener; for (int i = 0; i < listeners.Length; ++i) { listener = listeners[i]; if (listener == null) { continue; } _RemoveListener(listener); } } return(this); }
public DefaultPromise(IEventExecutor executor) { this.executor = ObjectUtil.CheckNotNull(executor, "executor"); }
public CompleteFuture(IEventExecutor executor) { this.executor = ObjectUtil.CheckNotNull(executor, "executor"); }