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

org.zodiac.actuate.health.AppCompositeReactiveHealthContributor Maven / Gradle / Ivy

The newest version!
package org.zodiac.actuate.health;

import java.util.Map;
import java.util.function.Function;

public interface AppCompositeReactiveHealthContributor
    extends AppReactiveHealthContributor, AppNamedContributors {

    /**
     * Factory method that will create a {@link AppCompositeReactiveHealthContributor} from the specified map.
     * 
     * @param map the source map
     * @return A composite health contributor instance
     */
    static AppCompositeReactiveHealthContributor fromMap(Map map) {
        return fromMap(map, Function.identity());
    }

    /**
     * Factory method that will create a {@link AppCompositeReactiveHealthContributor} from the specified map.
     * 
     * @param  the value type
     * @param map the source map
     * @param valueAdapter function used to adapt the map value
     * @return A composite health contributor instance
     */
    static  AppCompositeReactiveHealthContributor fromMap(Map map,
        Function valueAdapter) {
        return new AppCompositeReactiveHealthContributorMapAdapter<>(map, valueAdapter);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy