Class CustomStrategy
java.lang.Object
org.glassfish.grizzly.samples.strategy.CustomStrategy
Sample shows how easy custom
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.- Author:
- Alexey Stashok
- See Also:
-
IOStrategyLeaderFollowerNIOStrategySameThreadIOStrategyWorkerThreadIOStrategySimpleDynamicNIOStrategy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HOST
- See Also:
-
PORT
public static final int PORT- See Also:
-
-
Constructor Details
-
CustomStrategy
public CustomStrategy()
-
-
Method Details
-
main
- Throws:
IOException
-