Class VertxModule

java.lang.Object
io.jooby.vertx.VertxModule
All Implemented Interfaces:
io.jooby.Extension

public class VertxModule extends Object implements io.jooby.Extension
A Vertx module.

The following services are accessible from application registry:

  • Vertx
  • EventBus
  • FileSystem
Options might be provided from application configuration file:

 vertx.eventLoopPoolSize=5
 vertx.workerPoolSize = 20
 vertx.blockedThreadCheckInterval=500
 vertx.maxEventLoopExecuteTime=2000
 
Since:
4.0.8
Author:
edgar
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new vertx module.
    VertxModule(io.vertx.core.Vertx vertx)
    Creates a new vertx module.
    VertxModule(io.vertx.core.VertxOptions options)
    Creates a new vertx module.
    VertxModule(Function<io.vertx.core.VertxOptions,io.vertx.core.Future<io.vertx.core.Vertx>> vertx)
    Creates a new vertx module.
    VertxModule(Supplier<io.vertx.core.Future<io.vertx.core.Vertx>> vertx)
    Creates a new vertx module.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    install(io.jooby.Jooby application)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.jooby.Extension

    lateinit
  • Constructor Details

    • VertxModule

      public VertxModule()
      Creates a new vertx module. Options might be provided from application configuration using the vertx prefix.
    • VertxModule

      public VertxModule(io.vertx.core.Vertx vertx)
      Creates a new vertx module.
      Parameters:
      vertx - Vertx instance.
    • VertxModule

      public VertxModule(io.vertx.core.VertxOptions options)
      Creates a new vertx module.
      Parameters:
      options - Vertx options.
    • VertxModule

      public VertxModule(Function<io.vertx.core.VertxOptions,io.vertx.core.Future<io.vertx.core.Vertx>> vertx)
      Creates a new vertx module.
      Parameters:
      vertx - Vertx provider.
    • VertxModule

      public VertxModule(Supplier<io.vertx.core.Future<io.vertx.core.Vertx>> vertx)
      Creates a new vertx module.
      Parameters:
      vertx - Vertx provider.
  • Method Details

    • install

      public void install(@NonNull io.jooby.Jooby application) throws Exception
      Specified by:
      install in interface io.jooby.Extension
      Throws:
      Exception