Class OfficeFloorVertx

java.lang.Object
net.officefloor.vertx.OfficeFloorVertx

public class OfficeFloorVertx extends Object
Utility functions for working with Vertx within OfficeFloor.
Author:
Daniel Sagenschneider
  • Field Details

    • SYSTEM_PROPERTY_VERTX_TIMEOUT

      public static final String SYSTEM_PROPERTY_VERTX_TIMEOUT
      System property name to configure the Vertx time outs for starting / stopping.
      See Also:
  • Method Details

    • getVertx

      public static io.vertx.core.Vertx getVertx()
      Obtains the singleton Vertx.
      Returns:
      Singleton Vertx.
    • setVertx

      public static void setVertx(io.vertx.core.Vertx vertx)
      Specifies the singleton Vertx.
      Parameters:
      vertx - Singleton Vertx.
    • block

      public static <T> T block(io.vertx.core.Future<T> future) throws Exception
      Blocks on the Vertx Future
      Type Parameters:
      T - Result of Vertx operation.
      Parameters:
      future - Future to block on.
      Returns:
      Result of Vertx Future.
      Throws:
      Exception - If Future fails or times out.