public interface LockingData
extends javax.management.NotificationEmitter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JAVAMONITORDATA
Used to get only Java Monitors Data when comparing against
NotificationListener.getUserData() |
static java.lang.String |
SYSTEMMONITORDATA
Used to get only System Monitors Data when comparing against
NotificationListener.getUserData() |
| Modifier and Type | Method and Description |
|---|---|
MonitorData[] |
getInflatedJavaMonitors()
Gets an array of MonitorData objects representing
locks taken by the application that is being monitored.
|
MonitorData[] |
getInflatedSystemMonitors()
Gets an array of MonitorData objects representing
locks taken by the Java runtime environment.
|
void |
startNotifying(long delay)
Starts a thread which checks for updates and sends Notifications if any updates
have occurred.
|
static final java.lang.String JAVAMONITORDATA
NotificationListener.getUserData()static final java.lang.String SYSTEMMONITORDATA
NotificationListener.getUserData()MonitorData[] getInflatedJavaMonitors()
MonitorData[] getInflatedSystemMonitors()
void startNotifying(long delay)
delay - The number of milliseconds between each update. The default is
2000 milliseconds and anything below this will not be accepted.