com.sun.grizzly.tcp
Interface PendingIOhandler


public interface PendingIOhandler

allows for SelectorHandlers like TCPSelectorHandler to in an efficent "bulk style" offload selectionkey attachmen triggered IO to worker threads.

Author:
gustav trede

Method Summary
 void addPendingIO(Runnable runnable)
          Enqueues runnable for later execution.
this is not to be a threadsafe method, must be called from within the same SelectorHandler thread.
 void addPendingKeyCancel(SelectionKey key)
          Enqueues SlectionKey for later cancel and close .
this is not to be a threadsafe method, must be called from within the same SelectorHandler thread.
 

Method Detail

addPendingIO

void addPendingIO(Runnable runnable)
Enqueues runnable for later execution.
this is not to be a threadsafe method, must be called from within the same SelectorHandler thread.

Parameters:
runnable -

addPendingKeyCancel

void addPendingKeyCancel(SelectionKey key)
Enqueues SlectionKey for later cancel and close .
this is not to be a threadsafe method, must be called from within the same SelectorHandler thread.

Parameters:
runnable -


Copyright © 2009 SUN Microsystems. All Rights Reserved.