/** * Register the proxy handle on the event bus. * * @param eventBus the event bus * @param address the proxy address * @param interceptors the interceptors */ public MessageConsumer<JsonObject> register(EventBus eventBus, String address, List<Function<Message<JsonObject>, Future<Message<JsonObject>>>> interceptors) { Handler<Message<JsonObject>> handler = configureHandler(interceptors); consumer = eventBus.consumer(address, handler); return consumer; }
/** * 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 * @param interceptors the interceptors */ public MessageConsumer<JsonObject> registerLocal(EventBus eventBus, String address, List<Function<Message<JsonObject>, Future<Message<JsonObject>>>> interceptors) { Handler<Message<JsonObject>> handler = configureHandler(interceptors); consumer = eventBus.localConsumer(address, handler); return consumer; }