com.netflix.config.AbstractPollingScheduler Java Examples
The following examples show how to use
com.netflix.config.AbstractPollingScheduler.
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: ArchaiusConfiguration.java From kork with Apache License 2.0 | 6 votes |
@Bean static AbstractPollingScheduler pollingScheduler( ConfigurableApplicationContext applicationContext) { int initialDelayMillis = applicationContext .getEnvironment() .getProperty(FixedDelayPollingScheduler.INITIAL_DELAY_PROPERTY, Integer.class, 0); int delayMillis = applicationContext .getEnvironment() .getProperty( FixedDelayPollingScheduler.DELAY_PROPERTY, Integer.class, (int) TimeUnit.SECONDS.toMillis(15)); return new FixedDelayPollingScheduler(initialDelayMillis, delayMillis, false); }
Example #2
Source File: ArchaiusConfiguration.java From kork with Apache License 2.0 | 5 votes |
@Bean static ArchaiusInitializingBeanPostProcessor archaiusInitializingBeanPostProcessor( ConfigurableApplicationContext applicationContext, Optional<List<ClasspathPropertySource>> propertyBindings, AbstractPollingScheduler pollingScheduler, SpringEnvironmentPolledConfigurationSource polledConfigurationSource) { return new ArchaiusInitializingBeanPostProcessor( applicationContext, pollingScheduler, polledConfigurationSource, propertyBindings.orElse(Collections.emptyList())); }