Package fr.gouv.vitam.common.server.application

# Class ThreadManager

java.lang.Object
fr.gouv.vitam.common.server.application.ThreadManager

public class ThreadManager extends Object
ThreadManager class to manage all request in and out

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ThreadManager()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addRequest(jakarta.ws.rs.core.MultivaluedMap<String,String> headers)`
  add Request-Id in list
  `void`
  `removeRequest()`
  remove request-id
  `void`
  `shutdownAndWait()`
  Before stopping server, we need to wait all request to be finished

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

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

- ## Constructor Details

  - ### ThreadManager

    public ThreadManager()

- ## Method Details

  - ### addRequest

    public void addRequest(jakarta.ws.rs.core.MultivaluedMap<String,String> headers)
    add Request-Id in list
    Parameters:
      `headers` -

  - ### removeRequest

    public void removeRequest()
    remove request-id

  - ### shutdownAndWait

    public void shutdownAndWait()
    Before stopping server, we need to wait all request to be finished