net.i2p.router.tunnel.pool

## Class BuildHandler

- java.lang.Object
- - net.i2p.router.tunnel.pool.BuildHandler

- All Implemented Interfaces:
    Runnable

      class BuildHandler
      extends Object
      implements Runnable

  Handle the received tunnel build message requests and replies, including sending responses and updating tunnel lists.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BuildHandler(RouterContext ctx, TunnelPoolManager manager, BuildExecutor exec)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getInboundBuildQueueSize()`
    `(package private) void` | `init()` Call the same time you start the threads
    `void` | `restart()`
    `void` | `run()` Thread to handle inbound requests
    `void` | `shutdown(int numThreads)` Cannot be restarted.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BuildHandler

          public BuildHandler(RouterContext ctx,
                              TunnelPoolManager manager,
                              BuildExecutor exec)

  - ### Method Detail

    - #### getInboundBuildQueueSize

          public int getInboundBuildQueueSize()

    - #### init

          void init()

      Call the same time you start the threads

    - #### restart

          public void restart()

    - #### run

          public void run()

      Thread to handle inbound requests
      Specified by:
        `run` in interface `Runnable`

    - #### shutdown

          public void shutdown(int numThreads)

      Cannot be restarted.
      Parameters:
        `numThreads` - the number of threads to be shut down