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

org.eclipse.jnosql.databases.infinispan.communication.InfinispanConfigurations Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
/*
 *  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:
 *
 *   The Infinispan Team
 */
package org.eclipse.jnosql.databases.infinispan.communication;

import java.util.function.Supplier;

/**
 * An enumeration to show the available options to connect to the Infinispan 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 InfinispanConfigurations implements Supplier {

    /**
     * Database's host. It is a prefix to enumerate hosts. E.g.: jnosql.infinispan.host.1=HOST
     */
    HOST("jnosql.infinispan.host"),
    /**
     * The Infinispan configuration path. E.g.: jnosql.infinispan.config=infinispan.xml
     */
    CONFIG("jnosql.infinispan.config");

    private final String configuration;

    InfinispanConfigurations(String configuration) {
        this.configuration = configuration;
    }

    @Override
    public String get() {
        return configuration;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy