Пример #1
0
        internal DispatcherEventLoop(IEventLoopGroup parent, IThreadFactory threadFactory)
            : base(parent, threadFactory, RejectedExecutionHandlers.Reject(), DefaultBreakoutInterval)
        {
            if (parent is null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.parent);
            }

            string pipeName = "DotNetty_" + Guid.NewGuid().ToString("n");

            PipeName = (PlatformApi.IsWindows
                ? @"\\.\pipe\"
                : "/tmp/") + pipeName;
            Start();
        }
Пример #2
0
 public DefaultEventLoop(IEventLoopGroup parent, IThreadFactory threadFactory, IEventLoopTaskQueueFactory queueFactory)
     : this(parent, threadFactory, RejectedExecutionHandlers.Reject(), queueFactory)
 {
 }
Пример #3
0
 public DefaultEventLoop(IEventLoopGroup parent, IThreadFactory threadFactory, int maxPendingTasks)
     : this(parent, threadFactory, RejectedExecutionHandlers.Reject(), maxPendingTasks)
 {
 }
Пример #4
0
 public DefaultEventLoop(IEventLoopGroup parent, int maxPendingTasks)
     : this(parent, RejectedExecutionHandlers.Reject(), maxPendingTasks)
 {
 }
Пример #5
0
 public WorkerEventLoopGroup(DispatcherEventLoopGroup eventLoopGroup, int nThreads, IEventExecutorChooserFactory <WorkerEventLoop> chooserFactory)
     : this(eventLoopGroup, nThreads, chooserFactory, RejectedExecutionHandlers.Reject())
 {
 }
Пример #6
0
 protected SingleThreadEventLoopBase(IEventLoopGroup parent, IThreadFactory threadFactory, bool addTaskWakesUp)
     : this(parent, threadFactory, addTaskWakesUp, DefaultMaxPendingTasks, RejectedExecutionHandlers.Reject())
 {
 }
Пример #7
0
 public WorkerEventLoopGroup(DispatcherEventLoopGroup eventLoopGroup, int nThreads, IThreadFactory threadFactory)
     : this(eventLoopGroup, nThreads, threadFactory, RejectedExecutionHandlers.Reject())
 {
 }
Пример #8
0
 internal EventLoop(IEventLoopGroup parent)
     : this(parent, DefaultThreadFactory <EventLoop> .Instance, RejectedExecutionHandlers.Reject(), DefaultBreakoutInterval)
 {
 }
Пример #9
0
 public EventLoopGroup(int nThreads, IThreadFactory threadFactory, TimeSpan breakoutInterval)
     : this(nThreads, threadFactory, RejectedExecutionHandlers.Reject(), breakoutInterval)
 {
 }
Пример #10
0
 public EventLoopGroup(int nThreads, TimeSpan breakoutInterval)
     : this(nThreads, DefaultThreadFactory <EventLoop> .Instance, RejectedExecutionHandlers.Reject(), breakoutInterval)
 {
 }
Пример #11
0
 public SingleThreadEventLoop(IEventLoopGroup parent, IThreadFactory threadFactory, TimeSpan breakoutInterval)
     : this(parent, threadFactory, RejectedExecutionHandlers.Reject(), breakoutInterval)
 {
 }