Package ai.tock.shared.vertx
Class VertXsKt
-
- All Implemented Interfaces:
public final class VertXsKt
-
-
Field Summary
Fields Modifier and Type Field Description private static VertxOptionsdefaultVertxOptionsprivate final static Vertxvertx
-
Method Summary
Modifier and Type Method Description VertxOptionsgetDefaultVertxOptions()default vert.x options in Tock. voidsetDefaultVertxOptions(VertxOptions defaultVertxOptions)default vert.x options in Tock. final VertxgetVertx()final static <T extends Any> Unitblocking(Vertx $self, Function1<Promise<T>, Unit> blockingHandler, Function1<AsyncResult<T>, Unit> resultHandler)Execute a blocking task (with ordered false). final static Routeblocking(Route $self, Function1<RoutingContext, Unit> handler)Execute a blocking handler on route (with ordered false). final static CompositeFuturesetupSSE(HttpServerResponse $self)final static CompositeFuturesendSsePing(HttpServerResponse $self)final static CompositeFuturesendSseMessage(HttpServerResponse $self, String data)-
-
Method Detail
-
getDefaultVertxOptions
VertxOptions getDefaultVertxOptions()
default vert.x options in Tock.
-
setDefaultVertxOptions
void setDefaultVertxOptions(VertxOptions defaultVertxOptions)
default vert.x options in Tock.
-
getVertx
final Vertx getVertx()
-
blocking
final static <T extends Any> Unit blocking(Vertx $self, Function1<Promise<T>, Unit> blockingHandler, Function1<AsyncResult<T>, Unit> resultHandler)
Execute a blocking task (with ordered false).
-
blocking
final static Route blocking(Route $self, Function1<RoutingContext, Unit> handler)
Execute a blocking handler on route (with ordered false).
-
setupSSE
final static CompositeFuture setupSSE(HttpServerResponse $self)
-
sendSsePing
final static CompositeFuture sendSsePing(HttpServerResponse $self)
-
sendSseMessage
final static CompositeFuture sendSseMessage(HttpServerResponse $self, String data)
-
-
-
-