Package io.featureflow.client.core
Class FeatureflowPollingClient
java.lang.Object
io.featureflow.client.core.FeatureflowPollingClient
- All Implemented Interfaces:
Closeable,AutoCloseable
Polling-based client for fetching feature controls from Featureflow.
This client polls the Featureflow API at regular intervals to get feature updates.
It uses ETags to optimize requests and minimize data transfer.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureflowPollingClient(String apiKey, FeatureflowConfig config, FeatureControlCache repository, Map<CallbackEvent, List<FeatureControlCallbackHandler>> callbacks) Creates a new FeatureflowPollingClient. -
Method Summary
-
Constructor Details
-
FeatureflowPollingClient
public FeatureflowPollingClient(String apiKey, FeatureflowConfig config, FeatureControlCache repository, Map<CallbackEvent, List<FeatureControlCallbackHandler>> callbacks) Creates a new FeatureflowPollingClient.- Parameters:
apiKey- The Featureflow API keyconfig- The Featureflow configurationrepository- The feature control repositorycallbacks- Map of event callbacks
-
-
Method Details
-
initialized
public boolean initialized()Checks if the client is initialized. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-