public static class ConfigReloadContainer.Builder<V> extends Object
Modifier and Type | Method and Description |
---|---|
ConfigReloadContainer<V> |
build() |
ConfigReloadContainer.Builder<V> |
withFolder(java.util.function.BiConsumer<V,V> folder)
Note: this method assumes the object being managed by this container is mutable and can be used for
accumulation.
|
ConfigReloadContainer.Builder<V> |
withInitialConfig(V config) |
ConfigReloadContainer.Builder<V> |
withLastUpdate(Date lastUpdate) |
ConfigReloadContainer.Builder<V> |
withProvider(ConfigurationProvider provider) |
ConfigReloadContainer.Builder<V> |
withReloadCheckInterval(Long reloadCheckIntervalInMs) |
public ConfigReloadContainer.Builder<V> withInitialConfig(V config)
public ConfigReloadContainer.Builder<V> withLastUpdate(Date lastUpdate)
public ConfigReloadContainer.Builder<V> withProvider(ConfigurationProvider provider)
public ConfigReloadContainer.Builder<V> withFolder(java.util.function.BiConsumer<V,V> folder)
BinaryOperator
rather than a BiConsumer
.folder
- a consumer which given an accumulator and the next value, folds the next value into the
accumulator such that the accumulator now represents the merger of both objectspublic ConfigReloadContainer.Builder<V> withReloadCheckInterval(Long reloadCheckIntervalInMs)
public ConfigReloadContainer<V> build()
Copyright © 2020. All rights reserved.