use of io.vertx.core.eventbus.DeliveryOptions in project vert.x by eclipse.
the class Examples method example10.
public void example10(EventBus eventBus, MessageCodec myCodec) {
eventBus.registerCodec(myCodec);
DeliveryOptions options = new DeliveryOptions().setCodecName(myCodec.name());
eventBus.send("orders", new MyPOJO(), options);
}
use of io.vertx.core.eventbus.DeliveryOptions in project vert.x by eclipse.
the class Examples method headers.
public void headers(EventBus eventBus) {
DeliveryOptions options = new DeliveryOptions();
options.addHeader("some-header", "some-value");
eventBus.send("news.uk.sport", "Yay! Someone kicked a ball", options);
}
Aggregations