Class TThreadedSelectorServer.AcceptThread

java.lang.Object
java.lang.Thread
org.apache.thrift.server.TThreadedSelectorServer.AcceptThread
All Implemented Interfaces:
Runnable
Enclosing class:
TThreadedSelectorServer

protected class TThreadedSelectorServer.AcceptThread extends Thread
The thread that selects on the server transport (listen socket) and accepts new connections to hand off to the IO selector threads
  • Constructor Details

  • Method Details

    • run

      public void run()
      The work loop. Selects on the server transport and accepts. If there was a server transport that had blocking accepts, and returned on blocking client transports, that should be used instead
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • wakeupSelector

      public void wakeupSelector()
      If the selector is blocked, wake it up.