com.sun.grizzly
Class SelectorHandlerFactory

java.lang.Object
  extended by 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

Constructor Summary
SelectorHandlerFactory()
           
 
Method Summary
static SelectorHandler createSelectorHandler(Controller.Protocol protocol, boolean reusable)
          return an instance of SelectorHandler, which corresponds to the protocol and reusable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorHandlerFactory

public SelectorHandlerFactory()
Method Detail

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.