|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.util.SelectionKeyAttachment
com.sun.grizzly.util.SelectionKeyActionAttachment
com.sun.grizzly.util.SelectionKeyAttachmentWrapper<CallbackHandler>
com.sun.grizzly.CallbackHandlerSelectionKeyAttachment
public class CallbackHandlerSelectionKeyAttachment
SelectionKey attachment, which wraps CallbackHandler
| 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 | |
|---|---|
CallbackHandlerSelectionKeyAttachment(CallbackHandler callbackHandler)
Creates the CallbackHandler to the SelectionKey
CallbackHandler will not be attached directly, but wrapped with
CallbackHandlerSelectionKeyAttachment |
|
| Method Summary | |
|---|---|
void |
associateKey(java.nio.channels.SelectionKey selectionKey)
|
long |
getTimeout()
Callback handler never should lead to the timeout situation, as connections could use it, but perform IO operations in sync. |
void |
release(java.nio.channels.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, getIdleTimeoutDelay, getKeySelectionListener, 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 |
|---|
public CallbackHandlerSelectionKeyAttachment(CallbackHandler callbackHandler)
CallbackHandler to the SelectionKey
CallbackHandler will not be attached directly, but wrapped with
CallbackHandlerSelectionKeyAttachment
| Method Detail |
|---|
public void associateKey(java.nio.channels.SelectionKey selectionKey)
public void release(java.nio.channels.SelectionKey selectionKey)
release in class SelectionKeyAttachmentWrapper<CallbackHandler>public long getTimeout()
getTimeout in class SelectionKeyAttachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||