I am trying to understand how java.nio with Async non blocking chanels. Basicly I am going to have to write a server that opens up a port and allows many different clients stream data to it to be processed. I have seen some examples, and I have gotton them to work some, but I want to understand what they are doing.
I understand that you set the channel up to the port you want to listen on, but I am not sure how the Selector and SelctorKeys work with it? Can anyone please explain at a high level how all of this is working?
Well, it appears to be a " static factory method " which I have heard so often, but wondered what they were talking about until the last few days when I had to figure it out because it has become time that I should grasp some fundamental java.security issues.
will return a new'ed object, which must therefore be called in the run method of Acceptor - > which leads us directly into Servlets.
It may be that that is where your question should go, I started to read on Servlets and it is apparent that there is some code in the Servlet class that is implemented in the JVM and underlying interface code.