All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.vertx.vertx-service-proxy.handler_constructor_body.txt Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR3
Show newest version
    this.vertx = vertx;
    this.service = service;
    this.includeDebugInfo = includeDebugInfo;
    this.timeoutSeconds = timeoutSeconds;
    try {
      this.vertx.eventBus().registerDefaultCodec(ServiceException.class,
          new ServiceExceptionMessageCodec());
    } catch (IllegalStateException ex) {}
    if (timeoutSeconds != -1 && !topLevel) {
      long period = timeoutSeconds * 1000 / 2;
      if (period > 10000) {
        period = 10000;
      }
      this.timerID = vertx.setPeriodic(period, this::checkTimedOut);
    } else {
      this.timerID = -1;
    }
    accessed();
  }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy