Example usage for io.vertx.core.eventbus MessageCodec name

List of usage examples for io.vertx.core.eventbus MessageCodec name

Introduction

In this page you can find the example usage for io.vertx.core.eventbus MessageCodec name.

Prototype

String name();

Source Link

Document

The codec name.

Usage

From source file:docoverride.eventbus.Examples.java

License:Open Source License

public void example10(EventBus eventBus, MessageCodec myCodec) {

    eventBus.registerCodec(myCodec);//from w  w w. j  a  v  a2  s  .co m

    DeliveryOptions options = new DeliveryOptions().setCodecName(myCodec.name());

    eventBus.send("orders", new MyPOJO(), options);
}