public class RegistryShutdownHubImpl extends Object implements RegistryShutdownHub
| Constructor and Description |
|---|
RegistryShutdownHubImpl(org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegistryShutdownListener(RegistryShutdownListener listener)
Adds a listener for eventual notification.
|
void |
addRegistryShutdownListener(Runnable listener)
Adds a listener for eventual notification when the registry shuts down.
|
void |
addRegistryWillShutdownListener(Runnable listener)
Adds a listener for eventual notification.
|
void |
fireRegistryDidShutdown()
Fires the
RegistryShutdownListener.registryDidShutdown() method on each listener. |
public RegistryShutdownHubImpl(org.slf4j.Logger logger)
public void addRegistryShutdownListener(RegistryShutdownListener listener)
RegistryShutdownHubaddRegistryShutdownListener in interface RegistryShutdownHubpublic void addRegistryShutdownListener(Runnable listener)
RegistryShutdownHubaddRegistryShutdownListener in interface RegistryShutdownHubpublic void addRegistryWillShutdownListener(Runnable listener)
RegistryShutdownHubaddRegistryWillShutdownListener in interface RegistryShutdownHubpublic void fireRegistryDidShutdown()
RegistryShutdownListener.registryDidShutdown() method on each listener. At the end, all the
listeners are discarded.5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.