public class CustomStrategy extends Object
IOStrategy could be applied for a
Transport. In this example we use
LeaderFollowerNIOStrategy for processing all I/O events occurring on
Connection.
To test this echo server you can use EchoClient.IOStrategy,
LeaderFollowerNIOStrategy,
SameThreadIOStrategy,
WorkerThreadIOStrategy,
SimpleDynamicNIOStrategy| Constructor and Description |
|---|
CustomStrategy() |
public static final String HOST
public static final int PORT
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.