/** * Register the local proxy handle on the event bus. * The registration will not be propagated to other nodes in the cluster. * * @param eventBus the event bus * @param address the proxy address */ public MessageConsumer<JsonObject> registerLocal(EventBus eventBus, String address) { return registerLocal(eventBus, address, null); }
/** * Registers a local service on the event bus. * The registration will not be propagated to other nodes in the cluster. * * @param clazz the service class (interface) * @param service the service object * @param <T> the type of the service interface * @return the consumer used to unregister the service */ public <T> MessageConsumer<JsonObject> registerLocal(Class<T> clazz, T service) { Objects.requireNonNull(address); // register return getProxyHandler(clazz, service).registerLocal(vertx.eventBus(), address, interceptors); }