Class DealerRouter.ServerTask

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    DealerRouter

    static class DealerRouter.ServerTask
    extends Object
    implements Runnable
    This is our server task. It uses the multithreaded server model to deal requests out to a pool of workers and route replies back to clients. One worker can handle one request at a time but one client can talk to multiple workers at once.
    • Constructor Detail

      • ServerTask

        ServerTask()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable