public final class V8Notifier
extends java.lang.Object
implements javax.management.NotificationListener
| Constructor and Description |
|---|
V8Notifier(java.util.concurrent.ConcurrentHashMap<java.lang.Long,V8Runtime> v8RuntimeMap)
Instantiates a new V8 notifier with the given runtime map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback) |
void |
registerListeners()
Registers this notifier as a JVM memory notification listener.
|
void |
unregisterListener()
Unregisters this notifier from JVM memory notifications.
|
public V8Notifier(java.util.concurrent.ConcurrentHashMap<java.lang.Long,V8Runtime> v8RuntimeMap)
v8RuntimeMap - the map of V8 runtime handles to runtime instancespublic void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
handleNotification in interface javax.management.NotificationListenerpublic void registerListeners()
public void unregisterListener()