Class 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 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 Detail

      • ThreadManager

        public ThreadManager()
    • 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