Package vertxval

Class VertxModule

  • All Implemented Interfaces:
    io.vertx.core.Verticle
    Direct Known Subclasses:
    HttpClientModule

    public abstract class VertxModule
    extends io.vertx.core.AbstractVerticle
    Actor that acts as a module deploying and exposing all the deployed actors.
    • Field Detail

      • deploymentOptions

        protected final io.vertx.core.DeploymentOptions deploymentOptions
      • deployer

        protected Deployer deployer
        Factory to deploy or spawn actors
    • Constructor Detail

      • VertxModule

        public VertxModule​(io.vertx.core.DeploymentOptions options)
      • VertxModule

        public VertxModule()
    • Method Detail

      • define

        protected abstract void define()
        The purpose of this method is to initialize the functions/consumers/suppliers defined in public fields of this class that will be exposed.
      • deploy

        protected abstract void deploy()
      • start

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

        protected <I,​O> VerticleRef<I,​O> getDeployedVerticle​(String address)
        Type Parameters:
        I - the type of the input message
        O - the type of the output message
        Parameters:
        address - the name of the actor
        Returns:
        an ActorRef
      • deployTask

        public void deployTask​(Runnable runnable)
      • deployTask

        public void deployTask​(Runnable runnable,
                               io.vertx.core.DeploymentOptions options)
      • deployVerticle

        public void deployVerticle​(io.vertx.core.AbstractVerticle verticle)
      • deployFn

        protected <I,​O> void deployFn​(String address,
                                            Function<I,​O> fn)
      • deployConsumer

        protected <I,​O> void deployConsumer​(String address,
                                                  Consumer<io.vertx.core.eventbus.Message<I>> consumer)
      • deployConsumer

        protected <I,​O> void deployConsumer​(String address,
                                                  Consumer<io.vertx.core.eventbus.Message<I>> consumer,
                                                  io.vertx.core.DeploymentOptions options)
      • deployFn

        protected <I,​O> void deployFn​(String address,
                                            Function<I,​O> fn,
                                            io.vertx.core.DeploymentOptions options)
      • deployλ

        protected <I,​O> void deployλ​(String address,
                                           λ<I,​O> lambda)
      • deployλ

        protected <I,​O> void deployλ​(String address,
                                           λ<I,​O> lambda,
                                           io.vertx.core.DeploymentOptions options)