Class UnregistrationListener
- java.lang.Object
-
- org.glassfish.admin.amx.impl.util.UnregistrationListener
-
- All Implemented Interfaces:
EventListener
,NotificationListener
public final class UnregistrationListener extends Object implements NotificationListener
Blocks until an MBean is UNregistered using a CountdownLatch (highly efficient).
-
-
Constructor Summary
Constructors Constructor Description UnregistrationListener(MBeanServerConnection conn, ObjectName objectName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleNotification(Notification notifIn, Object handback)
boolean
waitForUnregister(long timeoutMillis)
Wait (block) until the MBean is unregistered.
-
-
-
Constructor Detail
-
UnregistrationListener
public UnregistrationListener(MBeanServerConnection conn, ObjectName objectName)
-
-
Method Detail
-
handleNotification
public void handleNotification(Notification notifIn, Object handback)
- Specified by:
handleNotification
in interfaceNotificationListener
-
waitForUnregister
public boolean waitForUnregister(long timeoutMillis)
Wait (block) until the MBean is unregistered.- Returns:
- true if unregistered, false if an error
-
-