Example usage for io.vertx.core.eventbus MessageProducer drainHandler

List of usage examples for io.vertx.core.eventbus MessageProducer drainHandler

Introduction

In this page you can find the example usage for io.vertx.core.eventbus MessageProducer drainHandler.

Prototype

@Override
    MessageProducer<T> drainHandler(Handler<Void> handler);

Source Link

Usage

From source file:examples.VertxAmqpBridgeExamples.java

License:Apache License

public void example6(MessageProducer<JsonObject> producer) {
    producer.drainHandler(v -> {
        // ...do stuff and send...
    });
}