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

Method Detail

addPendingIO

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

Parameters:
runnable -

addPendingKeyCancel

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

Parameters:
runnable -


Copyright © 2012 Oracle Corporation. All Rights Reserved.