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)
RegistryShutdownHub
addRegistryShutdownListener
in interface RegistryShutdownHub
public void addRegistryShutdownListener(Runnable listener)
RegistryShutdownHub
addRegistryShutdownListener
in interface RegistryShutdownHub
public void addRegistryWillShutdownListener(Runnable listener)
RegistryShutdownHub
addRegistryWillShutdownListener
in interface RegistryShutdownHub
public void fireRegistryDidShutdown()
RegistryShutdownListener.registryDidShutdown()
method on each listener. At the end, all the
listeners are discarded.${project.version} - Copyright © 2003-2015 The Apache Software Foundation.