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

io.vertx.kotlin.ext.shell.ShellServerOptions.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.ext.shell

import io.vertx.ext.shell.ShellServerOptions

/**
 * A function providing a DSL for building [io.vertx.ext.shell.ShellServerOptions] objects.
 *
 * The configurations options for the shell server.
 *
 * @param reaperInterval  Set the repear interval, i.e the period at which session eviction is performed.
 * @param sessionTimeout  Set the session timeout.
 * @param welcomeMessage  Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell.
 *
 * 

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.ShellServerOptions original] using Vert.x codegen. */ fun shellServerOptionsOf( reaperInterval: Long? = null, sessionTimeout: Long? = null, welcomeMessage: String? = null): ShellServerOptions = io.vertx.ext.shell.ShellServerOptions().apply { if (reaperInterval != null) { this.setReaperInterval(reaperInterval) } if (sessionTimeout != null) { this.setSessionTimeout(sessionTimeout) } if (welcomeMessage != null) { this.setWelcomeMessage(welcomeMessage) } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy