org.glassfish.grizzly.web.container.util
Class SelectionKeyAttachmentWrapper<E>

java.lang.Object
  extended by org.glassfish.grizzly.web.container.util.SelectionKeyAttachment
      extended by org.glassfish.grizzly.web.container.util.SelectionKeyActionAttachment
          extended by org.glassfish.grizzly.web.container.util.SelectionKeyAttachmentWrapper<E>

public class SelectionKeyAttachmentWrapper<E>
extends SelectionKeyActionAttachment

SelectionKey attachment utility class. This class could be used as wrapper for custom SelectionKey attachments, which are not subclasses of SelectionKeyAttachment class.

Author:
Alexey Stashok

Field Summary
 
Fields inherited from class org.glassfish.grizzly.web.container.util.SelectionKeyAttachment
UNLIMITED_TIMEOUT
 
Constructor Summary
SelectionKeyAttachmentWrapper()
           
 
Method Summary
 E getAttachment()
           
 void postProcess(SelectionKey selectionKey)
           
 void process(SelectionKey selectionKey)
           
 void release(SelectionKey selectionKey)
           
 void setAttachment(E attachment)
           
 
Methods inherited from class org.glassfish.grizzly.web.container.util.SelectionKeyAttachment
getAttachment, getIdleTimeoutDelay, getTimeout, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionKeyAttachmentWrapper

public SelectionKeyAttachmentWrapper()
Method Detail

getAttachment

public E getAttachment()

setAttachment

public void setAttachment(E attachment)

process

public void process(SelectionKey selectionKey)
Specified by:
process in class SelectionKeyActionAttachment

postProcess

public void postProcess(SelectionKey selectionKey)
Specified by:
postProcess in class SelectionKeyActionAttachment

release

public void release(SelectionKey selectionKey)
Overrides:
release in class SelectionKeyAttachment


Copyright © 2009 SUN Microsystems. All Rights Reserved.