Permalink
Browse files

refresh -> reload

  • Loading branch information...
norbertpotocki committed Sep 21, 2015
1 parent dc706af commit 37e6cb6a647ee6913320efebb1675b8b97873ce4
View
@@ -34,12 +34,12 @@ public ConfigurationProvider configurationProvider() {
ConfigurationSource source = new ConsulConfigurationSource();
// Reload configuration every 5 seconds
RefreshStrategy refreshStrategy = new PeriodicalRefreshStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withRefreshStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
```
@@ -35,12 +35,12 @@ public ConfigurationProvider configurationProvider() {
ConfigurationSource source = new ConsulConfigurationSourceBuilder().build();
// Reload configuration every 5 seconds
ReloadStrategy refreshStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withReloadStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
}
View
@@ -35,12 +35,12 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(filesPath);
// Reload configuration every 5 seconds
RefreshStrategy refreshStrategy = new PeriodicalRefreshStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withRefreshStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.withEnvironment(environment)
.build();
}
@@ -50,12 +50,12 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(filesPath);
// Reload configuration every 5 seconds
ReloadStrategy refreshStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withReloadStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.withEnvironment(environment)
.build();
}
View
@@ -37,13 +37,13 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(branch);
// Reload configuration every 5 seconds
RefreshStrategy refreshStrategy = new PeriodicalRefreshStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withEnvironment(environment)
.withRefreshStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
```
@@ -49,13 +49,13 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(branch);
// Reload configuration every 5 seconds
ReloadStrategy refreshStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withEnvironment(environment)
.withReloadStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
}
View
@@ -41,13 +41,13 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(branch);
// Reload configuration every 5 seconds
RefreshStrategy refreshStrategy = new PeriodicalRefreshStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withEnvironment(environment)
.withRefreshStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
```
@@ -56,13 +56,13 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(branch);
// Reload configuration every 5 seconds
ReloadStrategy refreshStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withEnvironment(environment)
.withReloadStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
}
View
@@ -37,13 +37,13 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(branch);
// Reload configuration every 5 seconds
RefreshStrategy refreshStrategy = new PeriodicalRefreshStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withEnvironment(environment)
.withRefreshStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
```
@@ -49,13 +49,13 @@ public ConfigurationProvider configurationProvider() {
Environment environment = new ImmutableEnvironment(branch);
// Reload configuration every 5 seconds
ReloadStrategy refreshStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
ReloadStrategy reloadStrategy = new PeriodicalReloadStrategy(5, TimeUnit.SECONDS);
// Create provider
return new ConfigurationProviderBuilder()
.withConfigurationSource(source)
.withEnvironment(environment)
.withReloadStrategy(refreshStrategy)
.withReloadStrategy(reloadStrategy)
.build();
}
}

0 comments on commit 37e6cb6

Please sign in to comment.