com.netflix.config.PolledConfigurationSource Java Examples
The following examples show how to use
com.netflix.config.PolledConfigurationSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApplicationPropertiesConfigurations.java From tutorials with MIT License | 5 votes |
@Bean public AbstractConfiguration addApplicationPropertiesSource() { // Normally, the DB Table would be already created and populated. // In this case, we'll do it just before creating the archaius config source that uses it initDatabase(); PolledConfigurationSource source = new DynamoDbConfigurationSource(amazonDynamoDb); return new DynamicConfiguration(source, new FixedDelayPollingScheduler()); }
Example #2
Source File: ArchaiusPropertyRegister.java From tenacity with Apache License 2.0 | 5 votes |
@Override protected synchronized void initialLoad(PolledConfigurationSource source, Configuration config) { try { super.initialLoad(source, config); } catch (Exception err) { LOGGER.warn("Initial dynamic configuration load failed", err); } }
Example #3
Source File: ApplicationPropertiesConfigurations.java From tutorials with MIT License | 4 votes |
@Bean public AbstractConfiguration addApplicationPropertiesSource() { PolledConfigurationSource source = new JDBCConfigurationSource(h2DataSource, "select distinct key, value from properties", "key", "value"); return new DynamicConfiguration(source, new FixedDelayPollingScheduler()); }
Example #4
Source File: ApplicationPropertiesConfigurations.java From tutorials with MIT License | 4 votes |
@Bean public AbstractConfiguration addApplicationPropertiesSource() throws IOException { URL configPropertyURL = (new ClassPathResource("other-config.properties")).getURL(); PolledConfigurationSource source = new URLConfigurationSource(configPropertyURL); return new DynamicConfiguration(source, new FixedDelayPollingScheduler()); }