vertx / io.vertx.kotlin.ext.consul / KeyValueOptions

KeyValueOptions

fun KeyValueOptions(acquireSession: String? = null, casIndex: Long? = null, flags: Long? = null, releaseSession: String? = null): KeyValueOptions

A function providing a DSL for building io.vertx.ext.consul.KeyValueOptions objects.

Options used to put key/value pair to Consul.

Parameters

acquireSession - Set session ID for lock acquisition operation.

casIndex - Set the Check-And-Set index. If the index is 0, Consul will only put the key if it does not already exist. If the index is non-zero, the key is only set if the index matches the ModifyIndex of that key.

flags - Set the flags. Flags is an value between 0 and 264-1 that can be attached to each entry. Clients can choose to use this however makes sense for their application.

releaseSession - Set session ID for lock release operation.