com.sun.grizzly
Class SelectorHandlerFactory
java.lang.Object
com.sun.grizzly.SelectorHandlerFactory
public class SelectorHandlerFactory
- extends Object
This class helps users to create a proper SelectorHandler
which corresponds to its protocol and reusableness.
Currently, it supports only default Role
of SelectorHandler
.
- Author:
- Bongjae Chang
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectorHandlerFactory
public SelectorHandlerFactory()
createSelectorHandler
public static SelectorHandler createSelectorHandler(Controller.Protocol protocol,
boolean reusable)
- return an instance of
SelectorHandler
, which corresponds to the protocol and reusable
- Parameters:
protocol
- a Controller.Protocol
reusable
- if true, the server-side channel is reused
- Returns:
- a proper instance of
SelectorHandler
Copyright © 2012 Oracle Corporation. All Rights Reserved.