com.sun.grizzly.util
Class SelectionKeyAttachmentWrapper<E>

java.lang.Object
  extended by com.sun.grizzly.util.SelectionKeyAttachment
      extended by com.sun.grizzly.util.SelectionKeyActionAttachment
          extended by com.sun.grizzly.util.SelectionKeyAttachmentWrapper<E>
Direct Known Subclasses:
CallbackHandlerSelectionKeyAttachment

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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.util.SelectionKeyAttachment
SelectionKeyAttachment.KeySelectionListener, SelectionKeyAttachment.TimeOutListener
 
Field Summary
 
Fields inherited from class com.sun.grizzly.util.SelectionKeyAttachment
DEREGISTERED, idleTimeoutDelay, keySelectionListener, timeout, timeoutListener, 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 com.sun.grizzly.util.SelectionKeyAttachment
getAttachment, getIdleTimeoutDelay, getKeySelectionListener, getTimeout, getTimeoutListener, handleSelectedKey, setIdleTimeoutDelay, setKeySelectionListener, setTimeout, setTimeoutListener, timedOut
 
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 © 2012 Oracle Corporation. All Rights Reserved.