简体   繁体   English

Netty:如何从“EventLoop”获取单线程执行器?

[英]Netty: How can I acquire a single thread executor from an `EventLoop`?

How can I acquire a single thread executor from an EventLoop ?如何从EventLoop获取单线程执行EventLoop

The reason being is I would like to use a single thread for one part of my application, but still have it be available for use by the EventLoop .原因是我想为我的应用程序的一部分使用单个线程,但它仍然可供EventLoop使用。

The EventLoop is always just backed by a single thread. EventLoop 始终仅由单个线程支持。 So the EventLoop in fact is just a single thread executor.所以 EventLoop 实际上只是一个单线程执行器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM