@Service(name="stuck-threads-store") @RunLevel(value=10) public class StuckThreadsStore extends Object
| Constructor and Description |
|---|
StuckThreadsStore() |
| Modifier and Type | Method and 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
|
@PostConstruct public void postConstruct()
public void registerThread(Long threadid)
threadid - the id of the thread to registerpublic void deregisterThread(long threadid)
threadid - the id of the thread to removepublic ConcurrentHashMap<Long,Long> getThreads()
Copyright © 2019. All rights reserved.