com.sun.grizzly.http
Interface MultiSelectorThread


public interface MultiSelectorThread

This interface allow implementation of multi Selector support from a SelectorThread.

Author:
Jeanfrancois

Method Summary
 void addChannel(SocketChannel channel)
          Add a Channel to be processed by this Selector
 int getCurrentBusyProcessorThreads()
          Provides the count of request threads that are currently being processed by the container
 void initEndpoint()
          Initialize this SelectorThread
 void startEndpoint()
          Start and wait for incoming connection
 void stopEndpoint()
          Stop incoming connection
 

Method Detail

addChannel

void addChannel(SocketChannel channel)
                throws IOException,
                       ClosedChannelException
Add a Channel to be processed by this Selector

Throws:
IOException
ClosedChannelException

getCurrentBusyProcessorThreads

int getCurrentBusyProcessorThreads()
Provides the count of request threads that are currently being processed by the container

Returns:
Count of requests

initEndpoint

void initEndpoint()
                  throws IOException,
                         InstantiationException
Initialize this SelectorThread

Throws:
IOException
InstantiationException

startEndpoint

void startEndpoint()
                   throws IOException,
                          InstantiationException
Start and wait for incoming connection

Throws:
IOException
InstantiationException

stopEndpoint

void stopEndpoint()
Stop incoming connection



Copyright © 2011 SUN Microsystems. All Rights Reserved.