public DefaultEventExecutor(IEventExecutorGroup parent, int maxPendingTasks) : this(parent, RejectedExecutionHandlers.Reject(), maxPendingTasks) { }
public DefaultEventExecutor(IThreadFactory threadFactory, IEventExecutorTaskQueueFactory queueFactory) : this(threadFactory, RejectedExecutionHandlers.Reject(), queueFactory) { }
public DefaultEventExecutor(IThreadFactory threadFactory, int maxPendingTasks) : this(threadFactory, RejectedExecutionHandlers.Reject(), maxPendingTasks) { }
public DefaultEventExecutor(IEventExecutorTaskQueueFactory queueFactory) : this(RejectedExecutionHandlers.Reject(), queueFactory) { }
public DefaultEventExecutor(int maxPendingTasks) : this(RejectedExecutionHandlers.Reject(), maxPendingTasks) { }
/// <summary>Creates a new instance of <see cref="SingleThreadEventExecutor"/>.</summary> /// <param name="parent">the <see cref="IEventExecutorGroup"/> which is the parent of this instance and belongs to it.</param> /// <param name="threadFactory">the <see cref="IThreadFactory"/> which will be used for the used <see cref="Thread"/>.</param> /// <param name="addTaskWakesUp"><c>true</c> if and only if invocation of <see cref="AddTask(IRunnable)"/> will wake up the executor thread.</param> /// <param name="maxPendingTasks">the maximum number of pending tasks before new tasks will be rejected.</param> public SingleThreadEventExecutor(IEventExecutorGroup parent, IThreadFactory threadFactory, bool addTaskWakesUp, int maxPendingTasks) : this(parent, threadFactory, addTaskWakesUp, maxPendingTasks, RejectedExecutionHandlers.Reject()) { }