class EventBusSink {

    SubscriberBuilder<? extends Message<?>, Void> sink() {
        DeliveryOptions options = new DeliveryOptions();
        if (this.codec != null) {
            options.setCodecName(this.codec);
        }
        if (this.timeout != -1) {
            options.setSendTimeout(this.timeout);
        }

        return ReactiveStreams.<Message<?>> builder()
                .flatMapCompletionStage(msg -> {
                    // TODO support getting an EventBusMessage as message.
                    if (!this.publish) {
                        if (expectReply) {
                            return vertx.eventBus().request(address, msg.getPayload(), options).subscribeAsCompletionStage()
                                    .thenApply(m -> msg);
                        } else {
                            vertx.eventBus().sendAndForget(address, msg.getPayload(), options);
                            return CompletableFuture.completedFuture(msg);
                        }
                    } else {
                        vertx.eventBus().publish(address, msg.getPayload(), options);
                        return CompletableFuture.completedFuture(msg);
                    }
                })
                .ignore();
    }

      EventBusSink(Vertx vertx, VertxEventBusConnectorOutgoingConfiguration config);

}