Example usage for io.vertx.core.dns AddressResolverOptions AddressResolverOptions

List of usage examples for io.vertx.core.dns AddressResolverOptions AddressResolverOptions

Introduction

In this page you can find the example usage for io.vertx.core.dns AddressResolverOptions AddressResolverOptions.

Prototype

public AddressResolverOptions(JsonObject json) 

Source Link

Usage

From source file:me.bayes.vertx.spring.boot.VertxAutoConfiguration.java

License:Apache License

@Bean
public AddressResolverOptions addressResolverOptions(final VertxAddressResolverProperties properties) {

    final String propertyJson = Json.encode(properties);
    LOG.info("Loaded vertx address resolver properties '{}'.", propertyJson);

    final JsonObject config = new JsonObject(propertyJson);

    final AddressResolverOptions options = new AddressResolverOptions(config);

    return options;
}