com.sun.grizzly.http
Class SelectorThreadKeyHandler

java.lang.Object
  extended by com.sun.grizzly.BaseSelectionKeyHandler
      extended by com.sun.grizzly.DefaultSelectionKeyHandler
          extended by com.sun.grizzly.http.SelectorThreadKeyHandler
All Implemented Interfaces:
Handler, SelectionKeyHandler, Copyable

public class SelectorThreadKeyHandler
extends DefaultSelectionKeyHandler

Default HTTP SelectionKeyHandler implementation

Author:
Jean-Francois Arcand, Alexey Stashok

Field Summary
 
Fields inherited from class com.sun.grizzly.DefaultSelectionKeyHandler
nextKeysExpiration, timeout
 
Fields inherited from class com.sun.grizzly.BaseSelectionKeyHandler
logger, selectorHandler
 
Constructor Summary
SelectorThreadKeyHandler()
           
SelectorThreadKeyHandler(SelectorThread selectorThread)
           
 
Method Summary
 void cancel(SelectionKey key)
           
 void copyTo(Copyable copy)
           
 void doRegisterKey(SelectionKey key, int ops, long currentTime)
           
 void expire(Iterator<SelectionKey> iterator)
          
 void resetExpiration()
          Reset the expiration time
 
Methods inherited from class com.sun.grizzly.DefaultSelectionKeyHandler
addExpirationStamp, expire, getTimeout, postProcess, process, register, register, register, register, setTimeout
 
Methods inherited from class com.sun.grizzly.BaseSelectionKeyHandler
close, doAfterKeyCancel, doRegisterKey, getConnectionCloseHandler, getLogger, getSelectorHandler, notifyRemotlyClose, setConnectionCloseHandler, setLogger, setSelectorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorThreadKeyHandler

public SelectorThreadKeyHandler()

SelectorThreadKeyHandler

public SelectorThreadKeyHandler(SelectorThread selectorThread)
Method Detail

copyTo

public void copyTo(Copyable copy)
Specified by:
copyTo in interface Copyable
Overrides:
copyTo in class DefaultSelectionKeyHandler

doRegisterKey

public void doRegisterKey(SelectionKey key,
                          int ops,
                          long currentTime)
Overrides:
doRegisterKey in class DefaultSelectionKeyHandler

cancel

public void cancel(SelectionKey key)
Specified by:
cancel in interface SelectionKeyHandler
Overrides:
cancel in class BaseSelectionKeyHandler

resetExpiration

public void resetExpiration()
Reset the expiration time


expire

public void expire(Iterator<SelectionKey> iterator)

Specified by:
expire in interface SelectionKeyHandler
Overrides:
expire in class DefaultSelectionKeyHandler


Copyright © 2009 SUN Microsystems. All Rights Reserved.