Package org.wildfly.clustering.service
Class CountDownLifecycleListener
- java.lang.Object
-
- org.wildfly.clustering.service.CountDownLifecycleListener
-
- All Implemented Interfaces:
LifecycleListener
public class CountDownLifecycleListener extends Object implements LifecycleListener
LifecycleListenerthat counts down a latch when a targetLifecycleEventis triggered.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CountDownLifecycleListener(CountDownLatch latch)CountDownLifecycleListener(CountDownLatch latch, Set<LifecycleEvent> targetEvents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(ServiceController<?> controller, LifecycleEvent event)The service has entered new state
-
-
-
Constructor Detail
-
CountDownLifecycleListener
public CountDownLifecycleListener(CountDownLatch latch)
-
CountDownLifecycleListener
public CountDownLifecycleListener(CountDownLatch latch, Set<LifecycleEvent> targetEvents)
-
-
Method Detail
-
handleEvent
public void handleEvent(ServiceController<?> controller, LifecycleEvent event)
Description copied from interface:LifecycleListenerThe service has entered new state- Specified by:
handleEventin interfaceLifecycleListener- Parameters:
controller- the controllerevent- the lifecycle event
-
-