Found this method in System class. Just curious to know about it-
public static Channel inheritedChannel() throws IOException {
return SelectorProvider.provider().inheritedChannel();
}
Returns the channel inherited from the entity that created this Java virtual machine. This method returns the channel obtained by invoking
the inheritedChannel method of the system-wide default
SelectorProvider object.
It’s designed for Java programs to be started on demand from
inetdorxinetdon Unixy systems. Oracle has some more documentation and example code, unfortunately related to RMI, in their Designing Services to be Launched frominetdarticle, and there’s a very simple example in the Jetty source forInheritedChannelConnectorand some interesting discussions in bug JETTY-496 where the Jetty feature was introduced.