Interface Lifecycle


public interface Lifecycle
Methods for managing the life cycle of a component.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.Future<Void>
    Starts this component.
    io.vertx.core.Future<Void>
    Stops this component.
  • Method Details

    • start

      io.vertx.core.Future<Void> start()
      Starts this component.

      Implementing classes should use this method 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.

      Implementing classes should use this method to release any allocated resources. However, no long running tasks should be executed.

      Returns:
      A future indicating the outcome of the shut down process.