Package net.officefloor.vertx
Class OfficeFloorVertx
java.lang.Object
net.officefloor.vertx.OfficeFloorVertx
Utility functions for working with
Vertx within OfficeFloor.- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem property name to configure theVertxtime outs for starting / stopping. -
Method Summary
-
Field Details
-
SYSTEM_PROPERTY_VERTX_TIMEOUT
System property name to configure theVertxtime outs for starting / stopping.- See Also:
-
-
Method Details
-
getVertx
public static io.vertx.core.Vertx getVertx()Obtains the singletonVertx.- Returns:
- Singleton
Vertx.
-
setVertx
public static void setVertx(io.vertx.core.Vertx vertx) Specifies the singletonVertx.- Parameters:
vertx- SingletonVertx.
-
block
Blocks on theVertxFuture- Type Parameters:
T- Result ofVertxoperation.- Parameters:
future-Futureto block on.- Returns:
- Result of
VertxFuture. - Throws:
Exception- IfFuturefails or times out.
-