@Override public void process(KnotContext knotContext, Handler<AsyncResult<KnotContext>> result) { if (closed) { result.handle(Future.failedFuture(new IllegalStateException("Proxy is closed"))); return; } JsonObject _json = new JsonObject(); _json.put("knotContext", knotContext == null ? null : knotContext.toJson()); DeliveryOptions _deliveryOptions = (_options != null) ? new DeliveryOptions(_options) : new DeliveryOptions(); _deliveryOptions.addHeader("action", "process"); _vertx.eventBus().<JsonObject>send(_address, _json, _deliveryOptions, res -> { if (res.failed()) { result.handle(Future.failedFuture(res.cause())); } else { result.handle(Future.succeededFuture(res.result().body() == null ? null : new KnotContext(res.result().body()))); } }); }
private void traceMessage(KnotContext ctx) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Got message from <fragment-assembler> with value <{}>", ctx.toJson().encode()); } } }
private void traceMessage(KnotContext ctx) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Got message from <fragment-assembler> with value <{}>", ctx.toJson().encode()); } } }
private void traceMessage(KnotContext ctx) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Got message from <response-provider> with value <{}>", ctx.toJson().encode()); } } }
private void traceMessage(KnotContext ctx) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Got message from <response-provider> with value <{}>", ctx.toJson().encode()); } } }
private void traceMessage(KnotContext ctx) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Got message from <fragment-assembler> with value <{}>", ctx.toJson().encode()); } } }
private void traceMessage(KnotContext ctx) { if (LOGGER.isTraceEnabled()) { LOGGER.trace("Got message from <response-provider> with value <{}>", ctx.toJson().encode()); } } }
msg.reply(res.result() == null ? null : res.result().toJson());