vulcain-corejs
Version:
Vulcain micro-service framework
23 lines (22 loc) • 844 B
TypeScript
import { ConfigurationSource } from './configurationSource';
import { DynamicProperties } from "../properties/dynamicProperties";
export declare class ConfigurationManager {
private properties;
pollingIntervalInSeconds: number;
sourceTimeoutInMs: number;
private _sources;
private disposed;
private _polling;
constructor(properties: DynamicProperties, pollingIntervalInSeconds: number, sourceTimeoutInMs: number);
private ensuresPolling();
polling(): Promise<void>;
private loadPropertiesFromSources(results);
private loadProperties(props);
dispose(): void;
/**
* Initialize source(s) and return only when all sources are initialized
* @param sources List of sources
* @returns {Promise<T>}
*/
registerSourcesAsync(sources: Array<ConfigurationSource>): Promise<{}>;
}