org.glassfish.grizzly.nio
Class DefaultSelectionKeyHandler
java.lang.Object
org.glassfish.grizzly.nio.DefaultSelectionKeyHandler
- All Implemented Interfaces:
- SelectionKeyHandler
public final class DefaultSelectionKeyHandler
- extends java.lang.Object
- implements SelectionKeyHandler
- Author:
- oleksiys
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSelectionKeyHandler
public DefaultSelectionKeyHandler()
onKeyRegistered
public void onKeyRegistered(java.nio.channels.SelectionKey key)
- Specified by:
onKeyRegistered in interface SelectionKeyHandler
onKeyDeregistered
public void onKeyDeregistered(java.nio.channels.SelectionKey key)
- Specified by:
onKeyDeregistered in interface SelectionKeyHandler
cancel
public void cancel(java.nio.channels.SelectionKey key)
throws java.io.IOException
- Specified by:
cancel in interface SelectionKeyHandler
- Throws:
java.io.IOException
ioEvent2SelectionKeyInterest
public int ioEvent2SelectionKeyInterest(IOEvent ioEvent)
- Specified by:
ioEvent2SelectionKeyInterest in interface SelectionKeyHandler
getIOEvents
public IOEvent[] getIOEvents(int interest)
- Specified by:
getIOEvents in interface SelectionKeyHandler
selectionKeyInterest2IoEvent
public IOEvent selectionKeyInterest2IoEvent(int selectionKeyInterest)
- Specified by:
selectionKeyInterest2IoEvent in interface SelectionKeyHandler
onProcessInterest
public boolean onProcessInterest(java.nio.channels.SelectionKey key,
int interest)
throws java.io.IOException
- Specified by:
onProcessInterest in interface SelectionKeyHandler
- Throws:
java.io.IOException
getConnectionForKey
public NIOConnection getConnectionForKey(java.nio.channels.SelectionKey selectionKey)
- Specified by:
getConnectionForKey in interface SelectionKeyHandler
setConnectionForKey
public void setConnectionForKey(NIOConnection connection,
java.nio.channels.SelectionKey selectionKey)
- Specified by:
setConnectionForKey in interface SelectionKeyHandler
Copyright © 2011 Oracle Corpration. All Rights Reserved.