Package org.wildfly.clustering.service
Class CountDownLifecycleListener
java.lang.Object
org.wildfly.clustering.service.CountDownLifecycleListener
- All Implemented Interfaces:
LifecycleListener
LifecycleListener that counts down a latch when a target LifecycleEvent is triggered.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCountDownLifecycleListener(CountDownLatch latch, Set<LifecycleEvent> targetEvents) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(ServiceController<?> controller, LifecycleEvent event) The service has entered new state
-
Constructor Details
-
CountDownLifecycleListener
-
CountDownLifecycleListener
-
-
Method Details
-
handleEvent
Description copied from interface:LifecycleListenerThe service has entered new state- Specified by:
handleEventin interfaceLifecycleListener- Parameters:
controller- the controllerevent- the lifecycle event
-