Interface PollableSource.Builder<T extends PollableSource.Builder<T>>

Type Parameters:
T - type of the builder, used when extending this builder
All Known Implementing Classes:
ConfigSources.SystemPropertiesConfigSource.Builder, DirectoryConfigSource.Builder, EtcdConfigSourceBuilder, FileConfigSource.Builder, FileOverrideSource.Builder, GitConfigSourceBuilder, MapConfigSource.Builder, MapConfigSource.MapBuilder, UrlConfigSource.Builder, UrlOverrideSource.Builder
Enclosing interface:
PollableSource<S>

public static interface PollableSource.Builder<T extends PollableSource.Builder<T>>
A builder for pollable source.
See Also:
  • Method Details

    • pollingStrategy

      T pollingStrategy(PollingStrategy pollingStrategy)
      Configure the polling strategy to use.
      Parameters:
      pollingStrategy - polling strategy
      Returns:
      updated builder
    • pollingStrategy

      default T pollingStrategy(Supplier<? extends PollingStrategy> pollingStrategy)
      Configure the polling strategy to use.
      Parameters:
      pollingStrategy - supplier of polling strategy (such as its builder)
      Returns:
      updated builder