Setting headers on messages
Messages sent over the event bus can also contain headers. This can be specified by providing a
DeliveryOptions
when sending or publishing:
DeliveryOptions options = new DeliveryOptions();
options.addHeader("some-header", "some-value");
eventBus.send("news.uk.sport", "Yay! Someone kicked a ball", options);