All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arangodb.http.HttpProtocolConfig Maven / Gradle / Ivy

The newest version!
package com.arangodb.http;

import com.arangodb.config.ProtocolConfig;
import io.vertx.core.Vertx;

public final class HttpProtocolConfig implements ProtocolConfig {
    private final Vertx vertx;

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private Vertx vertx;

        private Builder() {
        }

        /**
         * Set the Vert.x instance to use for creating HTTP connections.
         *
         * @param vertx the Vert.x instance to use
         * @return this builder
         */
        public Builder vertx(Vertx vertx) {
            this.vertx = vertx;
            return this;
        }

        public HttpProtocolConfig build() {
            return new HttpProtocolConfig(vertx);
        }
    }

    private HttpProtocolConfig(Vertx vertx) {
        this.vertx = vertx;
    }

    public Vertx getVertx() {
        return vertx;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy