Netty真的只为网络提供非阻塞IO吗?
Is it true that Netty provides non-blocking IO only for network?
我的理解是否正确,Netty 只为网络提供非阻塞 io (NIO)?如果你想做一个阻塞 io(即数据库查询),你必须使用 ChannelHandlerContext 中的执行器才能不阻塞 EventLoop?
Is my understanding correct that Netty provides non-blocking io (NIO) only for network?
更准确的说法是Java只为网络通道提供非阻塞I/O。请参阅扩展 SelectableChannel
.
的 类 的列表
And if you want to make a blocking io (i.e. database query), you have to use executer from ChannelHandlerContext
in order to not to block EventLoop?
是的。
我的理解是否正确,Netty 只为网络提供非阻塞 io (NIO)?如果你想做一个阻塞 io(即数据库查询),你必须使用 ChannelHandlerContext 中的执行器才能不阻塞 EventLoop?
Is my understanding correct that Netty provides non-blocking io (NIO) only for network?
更准确的说法是Java只为网络通道提供非阻塞I/O。请参阅扩展 SelectableChannel
.
And if you want to make a blocking io (i.e. database query), you have to use executer from
ChannelHandlerContext
in order to not to block EventLoop?
是的。