Uses of Class
com.flagsmith.FlagsmithClient.Builder
| Package | Description |
|---|---|
| com.flagsmith |
-
Uses of FlagsmithClient.Builder in com.flagsmith
Methods in com.flagsmith that return FlagsmithClient.Builder Modifier and Type Method Description FlagsmithClient.BuilderFlagsmithClient.Builder. enableLogging()Enables logging, the project importing this module must include an implementation slf4j in their pom.FlagsmithClient.BuilderFlagsmithClient.Builder. enableLogging(FlagsmithLoggerLevel level)Enables logging, the project importing this module must include an implementation slf4j in their pom.FlagsmithClient.BuilderFlagsmithClient.Builder. enableLogging(org.slf4j.Logger logger)Enables logging, the project importing this module must include an implementation slf4j in their pom.static FlagsmithClient.BuilderFlagsmithClient. newBuilder()FlagsmithClient.BuilderFlagsmithClient.Builder. setApiKey(String apiKey)Set the environment API key.FlagsmithClient.BuilderFlagsmithClient.Builder. setDefaultFlagValueFunction(@NonNull Function<String,BaseFlag> defaultFlagValueFunction)When a flag does not exist in Flagsmith or there is an error, the SDK will return null by default.FlagsmithClient.BuilderFlagsmithClient.Builder. withApiUrl(String apiUrl)Set the base URL for Flagsmith API, overriding default one.FlagsmithClient.BuilderFlagsmithClient.Builder. withCache(FlagsmithCacheConfig cacheConfig)Enable in-memory caching for the Flagsmith API.FlagsmithClient.BuilderFlagsmithClient.Builder. withConfiguration(FlagsmithConfig config)Override default FlagsmithConfig for Flagsmith API.FlagsmithClient.BuilderFlagsmithClient.Builder. withCustomHttpHeaders(HashMap<String,String> customHeaders)Add custom HTTP headers to the calls.FlagsmithClient.BuilderFlagsmithClient.Builder. withFlagsmithApiWrapper(FlagsmithApiWrapper flagsmithApiWrapper)Set the api wrapper.FlagsmithClient.BuilderFlagsmithClient.Builder. withPollingManager(PollingManager manager)Set the polling manager.