December 2015
Intermediate to advanced
292 pages
6h 16m
English
Asynchronous communication involves making a request, and then proceeding with some other operation without having to wait for the request to be completed. This is referred to as non-blocking.
There are three classes used to support asynchronous channel operations:
AsynchronousSocketChannel: This is a simple asynchronous channel to a socketAsynchronousServerSocketChannel: This is an asynchronous channel to a server socketAsynchronousDatagramChannel: This is a channel for a datagram-oriented socketThe read/write methods of the AsynchronousSocketChannel class are asynchronous. The AsynchronousServerSocketChannel class possesses an accept method, which returns an AsynchronousSocketChannel instance. This method is also asynchronous. ...
Read now
Unlock full access