Search in sources :

Example 6 with StartService

use of in.erail.glue.annotation.StartService in project api-framework by vinscom.

the class SockJSHandlerInstance method start.

@StartService
public void start() {
    // Eventbus handle
    SockJSHandlerOptions sockJSHandlerOptions = (new SockJSHandlerOptions()).addDisabledTransport(Transport.EVENT_SOURCE.toString()).addDisabledTransport(Transport.HTML_FILE.toString()).addDisabledTransport(Transport.JSON_P.toString()).addDisabledTransport(Transport.XHR.toString()).setInsertJSESSIONID(false);
    mSockJSHandler = SockJSHandler.create(getVertx(), sockJSHandlerOptions).bridge(getBridgeOptions(), getBridgeEventHandler());
}
Also used : SockJSHandlerOptions(io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions) StartService(in.erail.glue.annotation.StartService)

Example 7 with StartService

use of in.erail.glue.annotation.StartService in project api-framework by vinscom.

the class OpenAPI3RouteBuilder method start.

@StartService
public void start() {
    getServices().getServices().stream().forEach((api) -> {
        RESTService service = (RESTService) api;
        getMetricTimers().put(service.getServiceUniqueId(), getMetricRegistry().timer("api.framework.service." + service.getServiceUniqueId()));
    });
}
Also used : RESTService(in.erail.service.RESTService) StartService(in.erail.glue.annotation.StartService)

Aggregations

StartService (in.erail.glue.annotation.StartService)7 JsonObject (io.vertx.core.json.JsonObject)2 RESTService (in.erail.service.RESTService)1 Bucket (io.github.bucket4j.Bucket)1 Observable (io.reactivex.Observable)1 Single (io.reactivex.Single)1 HttpServerOptions (io.vertx.core.http.HttpServerOptions)1 JsonArray (io.vertx.core.json.JsonArray)1 BridgeEventType (io.vertx.ext.bridge.BridgeEventType)1 SockJSHandlerOptions (io.vertx.ext.web.handler.sockjs.SockJSHandlerOptions)1 Vertx (io.vertx.reactivex.core.Vertx)1 HttpServer (io.vertx.reactivex.core.http.HttpServer)1 AsyncMap (io.vertx.reactivex.core.shareddata.AsyncMap)1 Lock (io.vertx.reactivex.core.shareddata.Lock)1 Router (io.vertx.reactivex.ext.web.Router)1 InvalidAlgorithmParameterException (java.security.InvalidAlgorithmParameterException)1 InvalidKeyException (java.security.InvalidKeyException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 SecureRandom (java.security.SecureRandom)1 Arrays (java.util.Arrays)1