Class AbstractVerticle

  • All Implemented Interfaces:
    io.vertx.core.Verticle

    public class AbstractVerticle
    extends io.vertx.core.AbstractVerticle
    Author:
    Julien Viet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Vertx vertx  
      • Fields inherited from class io.vertx.core.AbstractVerticle

        context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(io.vertx.core.Vertx vertx, io.vertx.core.Context context)  
      rx.Completable rxStart()
      Override to return a Completable that will complete the deployment of this verticle.
      rx.Completable rxStop()
      Override to return a Completable that will complete the undeployment of this verticle.
      void start​(io.vertx.core.Promise<Void> startFuture)  
      void stop​(io.vertx.core.Promise<Void> stopFuture)  
      • Methods inherited from class io.vertx.core.AbstractVerticle

        config, deploymentID, getVertx, processArgs, start, stop
    • Field Detail

      • vertx

        protected Vertx vertx
    • Constructor Detail

      • AbstractVerticle

        public AbstractVerticle()
    • Method Detail

      • init

        public void init​(io.vertx.core.Vertx vertx,
                         io.vertx.core.Context context)
        Specified by:
        init in interface io.vertx.core.Verticle
        Overrides:
        init in class io.vertx.core.AbstractVerticle
      • start

        public void start​(io.vertx.core.Promise<Void> startFuture)
                   throws Exception
        Specified by:
        start in interface io.vertx.core.Verticle
        Overrides:
        start in class io.vertx.core.AbstractVerticle
        Throws:
        Exception
      • rxStart

        public rx.Completable rxStart()
        Override to return a Completable that will complete the deployment of this verticle.

        When null is returned, the AbstractVerticle.start() will be called instead.

        Returns:
        the completable
      • stop

        public void stop​(io.vertx.core.Promise<Void> stopFuture)
                  throws Exception
        Specified by:
        stop in interface io.vertx.core.Verticle
        Overrides:
        stop in class io.vertx.core.AbstractVerticle
        Throws:
        Exception
      • rxStop

        public rx.Completable rxStop()
        Override to return a Completable that will complete the undeployment of this verticle.

        When null is returned, the AbstractVerticle.stop() will be called instead.

        Returns:
        the completable