Class PollingRemoteConfigurationSource<T>

java.lang.Object
io.confluent.security.audit.telemetry.exporter.config.remote.polling.PollingRemoteConfigurationSource<T>
Type Parameters:
T - The configuration class that would hold the response of the api poll
All Implemented Interfaces:
ICallbackResponse, RemoteConfigurationSource<T>
Direct Known Subclasses:
KubernetesConfigMapRemoteConfigurationSource

public abstract class PollingRemoteConfigurationSource<T> extends Object implements RemoteConfigurationSource<T>, ICallbackResponse
This PollingRemoteConfigurationSource class provides a generic polling implementation for remote configuration sources. It uses a single thread executor to poll the remote source.
  • Constructor Details

    • PollingRemoteConfigurationSource

      public PollingRemoteConfigurationSource(long refreshIntervalMs, Consumer<T> callback, Class<T> typeParameterClass)
      Parameters:
      refreshIntervalMs - - Executor service delay in milliseconds
      callback - - The callback to be called by the scheduled executor thread after polling the remote source
      typeParameterClass - - The class type of the configuration object that would hold the response of the api poll
  • Method Details