Package org.eclipse.hono.util
Interface Lifecycle
-
public interface Lifecycle
Methods for managing the life cycle of a component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.vertx.core.Future<Void>
start()
Starts this component.io.vertx.core.Future<Void>
stop()
Stops this component.
-
-
-
Method Detail
-
start
io.vertx.core.Future<Void> start()
Starts this component.This method should be used to allocate any required resources. However, no long running tasks should be executed.
- Returns:
- A future indicating the outcome of the startup process.
-
stop
io.vertx.core.Future<Void> stop()
Stops this component.This method should be used to release any allocated resources. However, no long running tasks should be executed.
- Returns:
- A future indicating the outcome of the shut down process.
-
-