List of usage examples for io.vertx.core.eventbus EventBus registerCodec
@GenIgnore(GenIgnore.PERMITTED_TYPE) EventBus registerCodec(MessageCodec codec);
From source file:docoverride.eventbus.Examples.java
License:Open Source License
public void example10(EventBus eventBus, MessageCodec myCodec) { eventBus.registerCodec(myCodec); DeliveryOptions options = new DeliveryOptions().setCodecName(myCodec.name()); eventBus.send("orders", new MyPOJO(), options); }