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 to be executed on Selector thread.
 void addPendingKeyCancel(SelectionKey key)
          Enqueues SelectionKey for later cancel and close on a Selector thread.
 

Method Detail

addPendingIO

void addPendingIO(Runnable runnable)
Enqueues runnable to be executed on Selector thread.

Parameters:
runnable -

addPendingKeyCancel

void addPendingKeyCancel(SelectionKey key)
Enqueues SelectionKey for later cancel and close on a Selector thread.

Parameters:
runnable -


Copyright © 2011 Oracle Corpration. All Rights Reserved.