public static <T> MessageConsumer<JsonObject> registerService(Class<T> clazz, Vertx vertx, T service, String address, long timeoutSeconds) { return new ServiceBinder(vertx) .setAddress(address) .setTimeoutSeconds(timeoutSeconds) .register(clazz, service); }
public static <T> MessageConsumer<JsonObject> registerLocalService(Class<T> clazz, Vertx vertx, T service, String address, long timeoutSeconds) { return new ServiceBinder(vertx) .setAddress(address) .setTimeoutSeconds(timeoutSeconds) .registerLocal(clazz, service); }
public static <T> MessageConsumer<JsonObject> registerService(Class<T> clazz, Vertx vertx, T service, String address, boolean topLevel, long timeoutSeconds) { return new ServiceBinder(vertx) .setAddress(address) .setTopLevel(topLevel) .setTimeoutSeconds(timeoutSeconds) .register(clazz, service); }
public static <T> MessageConsumer<JsonObject> registerLocalService(Class<T> clazz, Vertx vertx, T service, String address, boolean topLevel, long timeoutSeconds) { return new ServiceBinder(vertx) .setAddress(address) .setTopLevel(topLevel) .setTimeoutSeconds(timeoutSeconds) .registerLocal(clazz, service); }