Class WrappedLifecycleComponentVerticle

java.lang.Object
io.vertx.core.AbstractVerticle
org.eclipse.hono.util.WrappedLifecycleComponentVerticle
All Implemented Interfaces:
io.vertx.core.Verticle

public class WrappedLifecycleComponentVerticle extends io.vertx.core.AbstractVerticle
Enables a component with life cycle support to be used as a vert.x verticle.
  • Field Summary

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new WrappedLifecycleComponentVerticle.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(io.vertx.core.Promise<Void> startPromise)
     
    void
    stop(io.vertx.core.Promise<Void> stopPromise)
     

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WrappedLifecycleComponentVerticle

      public WrappedLifecycleComponentVerticle(Lifecycle lifecycleComponent)
      Creates a new WrappedLifecycleComponentVerticle.
      Parameters:
      lifecycleComponent - The component whose start and stop methods shall be called on start(Promise) and stop(Promise) of this verticle.
      Throws:
      NullPointerException - If lifecycleComponent is null.
  • Method Details

    • start

      public void start(io.vertx.core.Promise<Void> startPromise)
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
    • stop

      public void stop(io.vertx.core.Promise<Void> stopPromise)
      Specified by:
      stop in interface io.vertx.core.Verticle
      Overrides:
      stop in class io.vertx.core.AbstractVerticle