|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadMonitorListener
Interface for receiving events from ThreadMonitor
.
As with typical listener classes, implementations should also catch and handle any Throwables generated inside these methods since ThreadMonitor has little idea how to handle them.
Implementations should be multithread safe, since ThreadMonitor makes no guarantee which thread(s) will call these methods.
Method Summary | |
---|---|
void |
onDeadlocked(String state)
Called whenever the associated ThreadMonitor instance first detects deadlock when previously it had detected no deadlock. |
void |
onMonitoringError(Throwable t)
Called when the associated ThreadMonitor instance has detected some error while monitoring. |
void |
onMonitoringStarted()
Called when the associated ThreadMonitor instance has just started monitoring. |
void |
onMonitoringStopped()
Called when the associated ThreadMonitor instance has just stopped monitoring. |
void |
onNotDeadlocked(String state)
Called whenever the associated ThreadMonitor instance first detects no deadlock when previously it had detected deadlock. |
void |
onThreadState(String state)
Called whenever the associated ThreadMonitor instance has measured a new thread state. |
Method Detail |
---|
void onMonitoringStarted()
void onMonitoringStopped()
void onMonitoringError(Throwable t)
t
- the Throwable which caused the errorvoid onThreadState(String state)
state
- the entire thread state which was just measuredvoid onDeadlocked(String state)
state
- the thread state of just the deadlocked threadsvoid onNotDeadlocked(String state)
state
- the entire thread state which was just measured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |