Class ThreadManager
java.lang.Object
fr.gouv.vitam.common.server.application.ThreadManager
ThreadManager class to manage all request in and out
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequest
(javax.ws.rs.core.MultivaluedMap<String, String> headers) add Request-Id in listvoid
remove request-idvoid
Before stopping server, we need to wait all request to be finished
-
Constructor Details
-
ThreadManager
public ThreadManager()
-
-
Method Details
-
addRequest
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
-