Class ComponentStarter
- java.lang.Object
-
- org.apache.bookkeeper.common.component.ComponentStarter
-
public class ComponentStarter extends java.lang.Object
Utils to start components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ComponentStarter.ComponentShutdownHook
-
Constructor Summary
Constructors Constructor Description ComponentStarter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.CompletableFuture<java.lang.Void>
startComponent(LifecycleComponent component)
Start a component and register a shutdown hook.
-
-
-
Method Detail
-
startComponent
public static java.util.concurrent.CompletableFuture<java.lang.Void> startComponent(LifecycleComponent component)
Start a component and register a shutdown hook.- Parameters:
component
- component to start.
-
-