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