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

io.vertx.kotlin.servicediscovery.ServiceDiscoveryOptions.kt Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
/*
 * Copyright 2019 Red Hat, Inc.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Apache License v2.0 which accompanies this distribution.
 *
 * The Eclipse Public License is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * The Apache License v2.0 is available at
 * http://www.opensource.org/licenses/apache2.0.php
 *
 * You may elect to redistribute this code under either of these licenses.
 */
package io.vertx.kotlin.servicediscovery

import io.vertx.servicediscovery.ServiceDiscoveryOptions

/**
 * A function providing a DSL for building [io.vertx.servicediscovery.ServiceDiscoveryOptions] objects.
 *
 * Options to configure the service discovery.
 *
 * @param announceAddress  Sets the event bus address on which the service arrivals, departures and modifications are announced. This address must be consistent in the whole application.
 * @param backendConfiguration  Sets the configuration passed to the . Refer to the backend documentation to get more details on the requirements. The default backend does not need any configuration.
 * @param name  Sets the service discovery name used in the service usage events. If not set, the node id is used.
 * @param usageAddress  Sets the usage address: the event bus address on which are sent the service usage events (bind / release).
 *
 * 

* NOTE: This function has been automatically generated from the [io.vertx.servicediscovery.ServiceDiscoveryOptions original] using Vert.x codegen. */ fun serviceDiscoveryOptionsOf( announceAddress: String? = null, backendConfiguration: io.vertx.core.json.JsonObject? = null, name: String? = null, usageAddress: String? = null): ServiceDiscoveryOptions = io.vertx.servicediscovery.ServiceDiscoveryOptions().apply { if (announceAddress != null) { this.setAnnounceAddress(announceAddress) } if (backendConfiguration != null) { this.setBackendConfiguration(backendConfiguration) } if (name != null) { this.setName(name) } if (usageAddress != null) { this.setUsageAddress(usageAddress) } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy