Package net.bluemind.lib.vertx
Class VertxPlatform
java.lang.Object
net.bluemind.lib.vertx.VertxPlatform
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.core.eventbus.EventBuseventBus()static longexecuteBlockingPeriodic(long delay, io.vertx.core.Handler<Long> handler) static longexecuteBlockingPeriodic(io.vertx.core.Vertx vx, long delay, io.vertx.core.Handler<Long> handler) static longexecuteBlockingTimer(long delay, io.vertx.core.Handler<Long> handler) static longexecuteBlockingTimer(io.vertx.core.Vertx vx, long delay, io.vertx.core.Handler<Long> handler) static io.vertx.core.VertxgetVertx()static booleanstatic io.opentelemetry.api.OpenTelemetrystatic voidspawnBlocking(long t, TimeUnit u) static voidspawnVerticles(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> complete) voidstart(org.osgi.framework.BundleContext bundleContext) voidstop(org.osgi.framework.BundleContext bundleContext) static voidundeployVerticles(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> complete)
-
Constructor Details
-
VertxPlatform
public VertxPlatform()
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
spawnVerticles
-
spawnBlocking
-
undeployVerticles
public static void undeployVerticles(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> complete) -
getVertx
public static io.vertx.core.Vertx getVertx() -
executeBlockingPeriodic
-
executeBlockingPeriodic
public static long executeBlockingPeriodic(io.vertx.core.Vertx vx, long delay, io.vertx.core.Handler<Long> handler) -
executeBlockingTimer
-
executeBlockingTimer
public static long executeBlockingTimer(io.vertx.core.Vertx vx, long delay, io.vertx.core.Handler<Long> handler) -
isInEventLoopThread
public static boolean isInEventLoopThread() -
eventBus
public static io.vertx.core.eventbus.EventBus eventBus() -
openTelemetry
public static io.opentelemetry.api.OpenTelemetry openTelemetry() -
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-