Class StuckThreadsStore


  • @Service(name="stuck-threads-store")
    @RunLevel(10)
    public class StuckThreadsStore
    extends Object
    Stores all managed and pooled threads for testing if they are unresponsive
    Since:
    4.1.2.173
    Author:
    jonathan coustick
    • Constructor Detail

      • StuckThreadsStore

        public StuckThreadsStore()
    • Method Detail

      • postConstruct

        @PostConstruct
        public void postConstruct()
      • registerThread

        public void registerThread​(Long threadid)
        Registers a thread with the store
        Parameters:
        threadid - the id of the thread to register
      • deregisterThread

        public void deregisterThread​(long threadid)
        Removes a thread from the store. This means that the thread is not stuck.
        Parameters:
        threadid - the id of the thread to remove
      • getThreads

        public ConcurrentHashMap<Long,​Long> getThreads()
        Returns a HashMap of the threads in the store with the values of time the thread was registered.
        Returns:
        all threads