This test is used to verify that a JVM with a client connected to a server will shut down. To exercise as many threads as possible, it enables leasing, registers a connection listener, and registers a callback handler for polled callbacks. At the end of the method, it creates a Thread which runs longer that this test is supposed to last. According to the value returned by the overridden abstract method daemon(), it the Thread will be a daemon or non-daemon thread.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.