示例#1
0
 public DefaultEventExecutor(IEventExecutorGroup parent, int maxPendingTasks)
     : this(parent, RejectedExecutionHandlers.Reject(), maxPendingTasks)
 {
 }
示例#2
0
 public DefaultEventExecutor(IThreadFactory threadFactory, IEventExecutorTaskQueueFactory queueFactory)
     : this(threadFactory, RejectedExecutionHandlers.Reject(), queueFactory)
 {
 }
示例#3
0
 public DefaultEventExecutor(IThreadFactory threadFactory, int maxPendingTasks)
     : this(threadFactory, RejectedExecutionHandlers.Reject(), maxPendingTasks)
 {
 }
示例#4
0
 public DefaultEventExecutor(IEventExecutorTaskQueueFactory queueFactory)
     : this(RejectedExecutionHandlers.Reject(), queueFactory)
 {
 }
示例#5
0
 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())
 {
 }