Class StuckThreadsStore
- java.lang.Object
-
- fish.payara.nucleus.healthcheck.stuck.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 Summary
Constructors Constructor Description StuckThreadsStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deregisterThread(long threadid)
Removes a thread from the store.ConcurrentHashMap<Long,Long>
getThreads()
Returns a HashMap of the threads in the store with the values of time the thread was registered.void
postConstruct()
void
registerThread(Long threadid)
Registers a thread with the store
-
-
-
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
-
-