FlagsmithClient.Builder |
FlagsmithClient.Builder.enableLogging() |
Enables logging, the project importing this module must include an implementation slf4j in
their pom.
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.enableLogging(FlagsmithLoggerLevel level) |
Enables logging, the project importing this module must include an implementation slf4j in
their pom.
|
static FlagsmithClient.Builder |
FlagsmithClient.newBuilder() |
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.setApiKey(String apiKey) |
Set the environment API key.
|
FlagsmithClient.Builder |
FlagsmithClient.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.Builder |
FlagsmithClient.Builder.withApiUrl(String apiUrl) |
Set the base URL for Flagsmith API, overriding default one.
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.withCache(FlagsmithCacheConfig cacheConfig) |
Enable in-memory caching for the Flagsmith API.
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.withConfiguration(FlagsmithConfig config) |
Override default FlagsmithConfig for Flagsmith API.
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.withCustomHttpHeaders(HashMap<String,String> customHeaders) |
Add custom HTTP headers to the calls.
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.withFlagsmithApiWrapper(FlagsmithApiWrapper flagsmithApiWrapper) |
Set the api wrapper.
|
FlagsmithClient.Builder |
FlagsmithClient.Builder.withPollingManager(PollingManager manager) |
Set the polling manager.
|