在System类中发现了这种方法。只是好奇想了解一下它的相关信息 -
public static Channel inheritedChannel() throws IOException {
return SelectorProvider.provider().inheritedChannel();
}
返回从创建此Java虚拟机的实体继承的通道。该方法返回通过调用系统范围默认SelectorProvider对象的inheritedChannel方法获得的通道。
在System类中发现了这种方法。只是好奇想了解一下它的相关信息 -
public static Channel inheritedChannel() throws IOException {
return SelectorProvider.provider().inheritedChannel();
}
返回从创建此Java虚拟机的实体继承的通道。该方法返回通过调用系统范围默认SelectorProvider对象的inheritedChannel方法获得的通道。
inetd
文章中,Jetty源码中有一个非常简单的示例InheritedChannelConnector
和一些有趣的讨论在bug JETTY-496中,其中介绍了Jetty功能。