use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.
the class HttpRepositoryConnectorVerticle method start.
@Override
public void start() throws Exception {
LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
// register the service proxy on event bus
serviceBinder = new ServiceBinder(getVertx());
consumer = serviceBinder.setAddress(address).register(RepositoryConnectorProxy.class, new HttpRepositoryConnectorProxyImpl(vertx, config()));
}
use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.
the class FragmentSplitterVerticle method start.
@Override
public void start() throws Exception {
LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
// register the service proxy on event bus
serviceBinder = new ServiceBinder(getVertx());
consumer = serviceBinder.setAddress(configuration.getAddress()).register(KnotProxy.class, new FragmentSplitterKnotProxyImpl(configuration));
}
use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.
the class ServiceKnotVerticle method start.
@Override
public void start() throws Exception {
LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
// register the service proxy on event bus
serviceBinder = new ServiceBinder(getVertx());
consumer = serviceBinder.setAddress(configuration.getAddress()).register(KnotProxy.class, new ServiceKnotProxyImpl(vertx, configuration));
}
use of io.vertx.serviceproxy.ServiceBinder in project vertx-swagger by bobxwang.
the class WorkVerticle method start.
@Override
public void start() throws Exception {
super.start();
// vertx.eventBus().consumer(wikiDbQueue, this::onMessage);
serviceBinder = new ServiceBinder(vertx);
DatabaseService service = DatabaseService.create(vertx);
if (consumer == null) {
consumer = serviceBinder.setAddress(wikiDbQueue).register(DatabaseService.class, service);
}
}
use of io.vertx.serviceproxy.ServiceBinder in project vertx-examples by vert-x3.
the class SpringWorker method start.
@Override
public void start(Future<Void> startFuture) throws Exception {
new ServiceBinder(vertx).setAddress(BookAsyncService.ADDRESS).register(BookAsyncService.class, bookAsyncService).completionHandler(ar -> {
if (ar.succeeded()) {
LOG.info("SpringWorker started");
startFuture.complete();
} else {
startFuture.fail(ar.cause());
}
});
}
Aggregations