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

com.github.charlemaznable.vertx.common.ApolloParamsConfigable Maven / Gradle / Ivy

There is a newer version: 2022.0.2
Show newest version
package com.github.charlemaznable.vertx.common;

import lombok.val;

import static com.github.charlemaznable.vertx.config.VertxClusterConfigElf.fetchVertxClusterConfigApplyParams;
import static com.github.charlemaznable.vertx.config.VertxClusterConfigElf.getApolloProperty;
import static java.util.Objects.isNull;

public interface ApolloParamsConfigable extends ParamsConfigable {

    @Override
    default String fetchConfigValue(String[] params) {
        val applyParams = fetchVertxClusterConfigApplyParams(params);
        if (isNull(applyParams)) return null;
        return getApolloProperty(applyParams.getLeft(), applyParams.getRight());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy