Class TThreadedSelectorServer.SelectorThread

All Implemented Interfaces:
Runnable
Enclosing class:
TThreadedSelectorServer

protected class TThreadedSelectorServer.SelectorThread extends AbstractNonblockingServer.AbstractSelectThread
The SelectorThread(s) will be doing all the selecting on accepted active connections.
  • Constructor Details

    • SelectorThread

      public SelectorThread() throws IOException
      Set up the SelectorThread with an unbounded queue for incoming accepts.
      Throws:
      IOException - if a selector cannot be created
    • SelectorThread

      public SelectorThread(int maxPendingAccepts) throws IOException
      Set up the SelectorThread with an bounded queue for incoming accepts.
      Throws:
      IOException - if a selector cannot be created
    • SelectorThread

      public SelectorThread(BlockingQueue<TNonblockingTransport> acceptedQueue) throws IOException
      Set up the SelectorThread with a specified queue for connections.
      Parameters:
      acceptedQueue - The BlockingQueue implementation for holding incoming accepted connections.
      Throws:
      IOException - if a selector cannot be created.
  • Method Details