org.eclipse.jnosql.databases.memcached.communication.MemcachedConfigurations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnosql-memcached Show documentation
Show all versions of jnosql-memcached Show documentation
The Eclipse JNoSQL layer implementation to Memcached
/*
* Copyright (c) 2022 Contributors to the Eclipse Foundation
* 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
* and 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.
*
* Contributors:
*
* Otavio Santana
*/
package org.eclipse.jnosql.databases.memcached.communication;
import java.util.function.Supplier;
/**
* An enumeration to show the available options to connect to the Memcached database.
* It implements {@link Supplier}, where its it returns the property name that might be
* overwritten by the system environment using Eclipse Microprofile or Jakarta Config API.
*
* @see org.eclipse.jnosql.communication.Settings
*/
public enum MemcachedConfigurations implements Supplier {
/**
* The daemon state of the IO thread (defaults to true).
*/
DAEMON("jnosql.memcached.daemon"),
/**
* The maximum reconnect delay
*/
MAX_RECONNECT_DELAY("jnosql.memcached.reconnect.delay"),
/**
* The protocol type {@link net.spy.memcached.ConnectionFactoryBuilder.Protocol}
*/
PROTOCOL("jnosql.memcached.protocol"),
/**
* The locator type {@link net.spy.memcached.ConnectionFactoryBuilder.Locator}
*/
LOCATOR("jnosql.memcached.locator"),
/**
* Custom wait time for the authentication on connect/reconnect.
*/
AUTH_WAIT_TIME("jnosql.memcached.auth.wait.time"),
/**
* The maximum amount of time (in milliseconds) a client is willing to
* wait for space to become available in an output queue.
*/
MAX_BLOCK_TIME("jnosql.memcached.max.block.time"),
/**
* The default operation timeout in milliseconds.
*/
TIMEOUT("jnosql.memcached.timeout"),
/**
* The read buffer size.
*/
READ_BUFFER_SIZE("jnosql.memcached.read.buffer.size"),
/**
* The default operation optimization is not desirable.
*/
SHOULD_OPTIMIZE("jnosql.memcached.should.optimize"),
/**
* The maximum timeout exception threshold.
*/
TIMEOUT_THRESHOLD("jnosql.memcached.timeout.threshold"),
/**
* Enable the Nagle algorithm.
*/
USE_NAGLE_ALGORITHM("jnosql.memcached.nagle.algorithm"),
/**
* The user's credential
*/
USER("jnosql.memcached.user"),
/**
* The password's credential.
*/
PASSWORD("jnosql.memcached.password"),
/**
* Database's host. It is a prefix to enumerate hosts. E.g.: jnosql.memcached.host.1=localhost:11211
*/
HOST("jnosql.memcached.host");
private final String configuration;
MemcachedConfigurations(String configuration) {
this.configuration = configuration;
}
@Override
public String get() {
return configuration;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy