com.sun.grizzly
Class CallbackHandlerSelectionKeyAttachment
java.lang.Object
com.sun.grizzly.util.SelectionKeyAttachment
com.sun.grizzly.util.SelectionKeyActionAttachment
com.sun.grizzly.util.SelectionKeyAttachmentWrapper<CallbackHandler>
com.sun.grizzly.CallbackHandlerSelectionKeyAttachment
public class CallbackHandlerSelectionKeyAttachment
- extends SelectionKeyAttachmentWrapper<CallbackHandler>
SelectionKey
attachment, which wraps CallbackHandler
- Author:
- Alexey Stashok
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallbackHandlerSelectionKeyAttachment
public CallbackHandlerSelectionKeyAttachment(CallbackHandler callbackHandler)
- Creates the
CallbackHandler
to the SelectionKey
CallbackHandler will not be attached directly, but wrapped with
CallbackHandlerSelectionKeyAttachment
associateKey
public void associateKey(SelectionKey selectionKey)
release
public void release(SelectionKey selectionKey)
- Overrides:
release
in class SelectionKeyAttachmentWrapper<CallbackHandler>
getTimeout
public long getTimeout()
- Callback handler never should lead to the timeout situation,
as connections could use it, but perform IO operations in sync. mode.
- Overrides:
getTimeout
in class SelectionKeyAttachment
- Returns:
- null
Copyright © 2012 Oracle Corporation. All Rights Reserved.