com.sun.grizzly.nio
Interface NIOTransport

All Superinterfaces:
ExceptionHandler, Transport
All Known Implementing Classes:
AbstractNIOTransport, TCPNIOTransport, UDPNIOTransport

public interface NIOTransport
extends Transport

Author:
oleksiys

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.grizzly.Transport
Transport.State
 
Nested classes/interfaces inherited from interface com.sun.grizzly.utils.ExceptionHandler
ExceptionHandler.Severity
 
Method Summary
 NIOChannelDistributor getNioChannelDistributor()
           
 SelectionKeyHandler getSelectionKeyHandler()
           
 SelectorHandler getSelectorHandler()
           
 int getSelectorRunnersCount()
           
 Strategy getStrategy()
          Get the Strategy implementation, which will be used by Transport to process IOEvent.
 void setNioChannelDistributor(NIOChannelDistributor nioChannelDistributor)
           
 void setSelectionKeyHandler(SelectionKeyHandler selectionKeyHandler)
           
 void setSelectorHandler(SelectorHandler selectorHandler)
           
 void setSelectorRunnersCount(int selectorRunnersCount)
           
 void setStrategy(Strategy strategy)
          Set the Strategy implementation, which will be used by Transport to process IOEvent.
 
Methods inherited from interface com.sun.grizzly.Transport
addExceptionHandler, configureBlocking, fireIOEvent, fireIOEvent, getAttributeBuilder, getInternalThreadPool, getMemoryManager, getName, getProcessor, getProcessorSelector, getReadBufferSize, getState, getWorkerThreadPool, getWriteBufferSize, isBlocking, isStopped, notifyException, pause, removeExceptionHandler, resume, setAttributeBuilder, setInternalThreadPool, setMemoryManager, setName, setProcessor, setProcessorSelector, setReadBufferSize, setWorkerThreadPool, setWriteBufferSize, start, stop
 

Method Detail

getSelectionKeyHandler

SelectionKeyHandler getSelectionKeyHandler()

setSelectionKeyHandler

void setSelectionKeyHandler(SelectionKeyHandler selectionKeyHandler)

getSelectorHandler

SelectorHandler getSelectorHandler()

setSelectorHandler

void setSelectorHandler(SelectorHandler selectorHandler)

getSelectorRunnersCount

int getSelectorRunnersCount()

setSelectorRunnersCount

void setSelectorRunnersCount(int selectorRunnersCount)

getNioChannelDistributor

NIOChannelDistributor getNioChannelDistributor()

setNioChannelDistributor

void setNioChannelDistributor(NIOChannelDistributor nioChannelDistributor)

getStrategy

Strategy getStrategy()
Description copied from interface: Transport
Get the Strategy implementation, which will be used by Transport to process IOEvent. Strategy is responsible for choosing the way, how I/O event will be processed: using current Thread, worker Thread; or make any other decisions.

Specified by:
getStrategy in interface Transport
Returns:
the Strategy implementation, which will be used by Transport to process IOEvent.

setStrategy

void setStrategy(Strategy strategy)
Description copied from interface: Transport
Set the Strategy implementation, which will be used by Transport to process IOEvent. Strategy is responsible for choosing the way, how I/O event will be processed: using current Thread, worker Thread; or make any other decisions.

Specified by:
setStrategy in interface Transport
Parameters:
strategy - the Strategy implementation, which will be used by Transport to process IOEvent.


Copyright © 2009 SUN Microsystems. All Rights Reserved.