com.sun.grizzly.websockets
Class WebSocketSelectionKeyAttachment
java.lang.Object
com.sun.grizzly.util.SelectionKeyAttachment
com.sun.grizzly.util.SelectedKeyAttachmentLogic
com.sun.grizzly.websockets.WebSocketSelectionKeyAttachment
- All Implemented Interfaces:
- Runnable
public class WebSocketSelectionKeyAttachment
- extends SelectedKeyAttachmentLogic
- implements Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketSelectionKeyAttachment
public WebSocketSelectionKeyAttachment(ServerNetworkHandler snh,
ProcessorTask task,
AsyncProcessorTask asyncTask)
timedOut
public boolean timedOut(SelectionKey key)
- Description copied from class:
SelectionKeyAttachment
- called when idle timeout detected.
return true if key should be canceled.
- Overrides:
timedOut
in class SelectionKeyAttachment
- Returns:
handleSelectedKey
public boolean handleSelectedKey(SelectionKey key)
- Description copied from class:
SelectionKeyAttachment
- Used for completely custom selector.select logic.
- Overrides:
handleSelectedKey
in class SelectionKeyAttachment
- Returns:
- true, if we want to continue the default interest
processing, or false otherwise.
run
public void run()
- Specified by:
run
in interface Runnable
enableRead
public final void enableRead()
getSelectionKey
public SelectionKey getSelectionKey()
getHandler
public ServerNetworkHandler getHandler()
Copyright © 2012 Oracle Corporation. All Rights Reserved.