com.sun.grizzly.util
Class CallbackHandlerSelectionKeyAttachment

java.lang.Object
  extended by com.sun.grizzly.util.SelectionKeyAttachment
      extended by com.sun.grizzly.util.SelectionKeyActionAttachment
          extended by com.sun.grizzly.util.SelectionKeyAttachmentWrapper<CallbackHandler>
              extended by com.sun.grizzly.util.CallbackHandlerSelectionKeyAttachment

public class CallbackHandlerSelectionKeyAttachment
extends SelectionKeyAttachmentWrapper<CallbackHandler>

SelectionKey attachment, which wraps CallbackHandler

Author:
Alexey Stashok

Method Summary
static CallbackHandlerSelectionKeyAttachment create(SelectionKey key, CallbackHandler callbackHandler)
          Creates the CallbackHandler to the SelectionKey CallbackHandler will not be attached directly, but wrapped with CallbackHandlerSelectionKeyAttachment
 void release(SelectionKey selectionKey)
           
 
Methods inherited from class com.sun.grizzly.util.SelectionKeyAttachmentWrapper
getAttachment, postProcess, process, setAttachment
 
Methods inherited from class com.sun.grizzly.util.SelectionKeyAttachment
getAttachment, getTimeout, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static CallbackHandlerSelectionKeyAttachment create(SelectionKey key,
                                                           CallbackHandler callbackHandler)
Creates the CallbackHandler to the SelectionKey CallbackHandler will not be attached directly, but wrapped with CallbackHandlerSelectionKeyAttachment


release

public void release(SelectionKey selectionKey)
Overrides:
release in class SelectionKeyAttachmentWrapper<CallbackHandler>


Copyright © 2008 SUN Microsystems. All Rights Reserved.