Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Netty是否只为网络提供非阻塞IO?_Java_Io_Netty_Nio - Fatal编程技术网

Java Netty是否只为网络提供非阻塞IO?

Java Netty是否只为网络提供非阻塞IO?,java,io,netty,nio,Java,Io,Netty,Nio,Netty只为网络提供非阻塞io(NIO),我的理解正确吗?如果您想进行阻塞io(即数据库查询),则必须使用ChannelHandlerContext中的executer,以避免阻塞EventLoop Netty只为网络提供非阻塞io(NIO),我的理解正确吗 更准确地说,Java只为网络通道提供非阻塞I/O。请参阅扩展的类的列表 如果要进行阻塞io(即数据库查询),必须使用来自ChannelHandlerContext的executer,才能不阻塞EventLoop 是的。问题与网络无关;这是

Netty只为网络提供非阻塞io(NIO),我的理解正确吗?如果您想进行阻塞io(即数据库查询),则必须使用ChannelHandlerContext中的executer,以避免阻塞EventLoop

Netty只为网络提供非阻塞io(NIO),我的理解正确吗

更准确地说,Java只为网络通道提供非阻塞I/O。请参阅扩展的类的列表

如果要进行阻塞io(即数据库查询),必须使用来自
ChannelHandlerContext
的executer,才能不阻塞EventLoop


是的。

问题与网络无关;这是JDBC驱动程序的阻塞特性。有人试图为JDK9编写一个非阻塞的JDBC驱动程序,但目前还没有。