java.lang.Object
org.apache.hivemind.impl.servicemodel.SimpleImpl
- All Implemented Interfaces:
- java.util.EventListener, org.apache.hivemind.events.RegistryShutdownListener, Simple
- public class SimpleImpl
- extends java.lang.Object
- implements Simple, org.apache.hivemind.events.RegistryShutdownListener
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
counter
private Counter counter
SimpleImpl
public SimpleImpl()
SimpleImpl
public SimpleImpl(org.apache.hivemind.ShutdownCoordinator coordinator)
setCounter
public void setCounter(Counter counter)
- Specified by:
setCounter in interface Simple
registryDidShutdown
public void registryDidShutdown()
- Description copied from interface:
org.apache.hivemind.events.RegistryShutdownListener
- Invoked when a service is being shutdown, and should release any external resources.
A service should not attempt to use any resources or configurations, doing
so may result in a runtime exception.
- Specified by:
registryDidShutdown in interface org.apache.hivemind.events.RegistryShutdownListener