Class TThreadPoolServer

java.lang.Object
org.apache.thrift.server.TServer
org.apache.thrift.server.TThreadPoolServer

public class TThreadPoolServer extends TServer
Server which uses Java's built in ThreadPool management to spawn off a worker pool that deals with client connections in blocking way.
  • Constructor Details

  • Method Details

    • getExecutorService

      protected ExecutorService getExecutorService()
    • preServe

      protected boolean preServe()
    • serve

      public void serve()
      Description copied from class: TServer
      The run method fires up the server and gets things going.
      Specified by:
      serve in class TServer
    • execute

      protected void execute()
    • waitForShutdown

      protected boolean waitForShutdown()
    • stop

      public void stop()
      Description copied from class: TServer
      Stop the server. This is optional on a per-implementation basis. Not all servers are required to be cleanly stoppable.
      Overrides:
      stop in class TServer