com.sun.xml.ws.transport.tcp.util
Class SelectorFactory

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.util.SelectorFactory

public final class SelectorFactory
extends java.lang.Object

Class was copied from GlassFish Grizzly sources to be available also for client side and don't require GlassFish to be installed Factory used to dispatch/share Selector.


Constructor Summary
SelectorFactory()
           
 
Method Summary
static java.nio.channels.Selector getSelector()
          Get a exclusive Selector
static void returnSelector(java.nio.channels.Selector s)
          Return the Selector to the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorFactory

public SelectorFactory()
Method Detail

getSelector

public static java.nio.channels.Selector getSelector()
Get a exclusive Selector


returnSelector

public static void returnSelector(java.nio.channels.Selector s)
Return the Selector to the cache