Index
All Classes|All Packages
A
- addHttpInterceptor(Interceptor) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Add a custom HTTP interceptor.
- ALL_RULE - com.flagsmith.flagengine.segments.constants.SegmentRules
- AnalyticsProcessor - Class in com.flagsmith.threads
- AnalyticsProcessor(FlagsmithSdk, FlagsmithLogger, RequestProcessor) - Constructor for class com.flagsmith.threads.AnalyticsProcessor
-
Instantiate with API wrapper, logger, HTTP client and timeout.
- AnalyticsProcessor(FlagsmithSdk, OkHttpClient) - Constructor for class com.flagsmith.threads.AnalyticsProcessor
-
instantiate with api and client.
- AnalyticsProcessor(FlagsmithSdk, OkHttpClient, FlagsmithLogger) - Constructor for class com.flagsmith.threads.AnalyticsProcessor
-
Instantiate with API wrapper, logger and HTTP client.
- AnalyticsProcessor(OkHttpClient) - Constructor for class com.flagsmith.threads.AnalyticsProcessor
-
instantiate with HTTP client.
- ANY_RULE - com.flagsmith.flagengine.segments.constants.SegmentRules
- assertValidUser(String) - Method in interface com.flagsmith.interfaces.FlagsmithSdk
-
validate user has a valid identifier.
B
- BaseFlag - Class in com.flagsmith.models
- BaseFlag() - Constructor for class com.flagsmith.models.BaseFlag
- BaseModel - Class in com.flagsmith.flagengine.utils.models
- BaseModel - Class in com.flagsmith.utils.models
- BaseModel() - Constructor for class com.flagsmith.flagengine.utils.models.BaseModel
- BaseModel() - Constructor for class com.flagsmith.utils.models.BaseModel
- baseUri(String) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Set the base URL for Flagsmith API, overriding default one.
- build() - Method in class com.flagsmith.config.FlagsmithCacheConfig.Builder
- build() - Method in class com.flagsmith.config.FlagsmithConfig.Builder
- build() - Method in class com.flagsmith.FlagsmithClient.Builder
-
Builds a FlagsmithClient.
C
- calculateSleepTime() - Method in class com.flagsmith.config.Retry
-
The sleep time based on back off factor.
- cleanUp() - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- cleanUp() - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Performs any pending maintenance operations needed by the cache.
- close() - Method in class com.flagsmith.FlagsmithApiWrapper
-
Close the FlagsmithAPIWrapper instance, cleaning up any dependent threads or services which need cleaning up before the instance can be fully destroyed.
- close() - Method in class com.flagsmith.FlagsmithClient
-
Should be called when terminating the client to clean up any resources that need cleaning up.
- close() - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- close() - Method in class com.flagsmith.threads.AnalyticsProcessor
- close() - Method in class com.flagsmith.threads.RequestProcessor
- com.flagsmith - package com.flagsmith
- com.flagsmith.config - package com.flagsmith.config
- com.flagsmith.exceptions - package com.flagsmith.exceptions
- com.flagsmith.flagengine - package com.flagsmith.flagengine
- com.flagsmith.flagengine.environments - package com.flagsmith.flagengine.environments
- com.flagsmith.flagengine.environments.integrations - package com.flagsmith.flagengine.environments.integrations
- com.flagsmith.flagengine.features - package com.flagsmith.flagengine.features
- com.flagsmith.flagengine.identities - package com.flagsmith.flagengine.identities
- com.flagsmith.flagengine.identities.traits - package com.flagsmith.flagengine.identities.traits
- com.flagsmith.flagengine.organisations - package com.flagsmith.flagengine.organisations
- com.flagsmith.flagengine.projects - package com.flagsmith.flagengine.projects
- com.flagsmith.flagengine.segments - package com.flagsmith.flagengine.segments
- com.flagsmith.flagengine.segments.constants - package com.flagsmith.flagengine.segments.constants
- com.flagsmith.flagengine.utils - package com.flagsmith.flagengine.utils
- com.flagsmith.flagengine.utils.exceptions - package com.flagsmith.flagengine.utils.exceptions
- com.flagsmith.flagengine.utils.models - package com.flagsmith.flagengine.utils.models
- com.flagsmith.flagengine.utils.types - package com.flagsmith.flagengine.utils.types
- com.flagsmith.interfaces - package com.flagsmith.interfaces
- com.flagsmith.models - package com.flagsmith.models
- com.flagsmith.offline - package com.flagsmith.offline
- com.flagsmith.responses - package com.flagsmith.responses
- com.flagsmith.threads - package com.flagsmith.threads
- com.flagsmith.utils - package com.flagsmith.utils
- com.flagsmith.utils.models - package com.flagsmith.utils.models
- compare(SegmentConditions, Comparable, Comparable) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Run comparison with condition of primitive type.
- compare(SegmentConditions, Object, Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Compare the values value1 and value2 with the provided condition.
- compareModulo(String, Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Modulo is a special case as the condition value holds both the divisor and remainder.
- conditionMatchesTraitValue(SegmentConditionModel, Object) - Static method in class com.flagsmith.flagengine.segments.SegmentEvaluator
-
Matches condition value with the trait value.
- connectTimeout(int) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Override default connection timeout for client connection.
- CONTAINS - com.flagsmith.flagengine.segments.constants.SegmentConditions
D
- DefaultFlag - Class in com.flagsmith.models
- DefaultFlag() - Constructor for class com.flagsmith.models.DefaultFlag
- DefaultFlagHandler - Interface in com.flagsmith.interfaces
- DuplicateFeatureState - Exception in com.flagsmith.flagengine.utils.exceptions
- DuplicateFeatureState() - Constructor for exception com.flagsmith.flagengine.utils.exceptions.DuplicateFeatureState
E
- enableEnvLevelCaching(String) - Method in class com.flagsmith.config.FlagsmithCacheConfig.Builder
-
Enables caching for environment level flags.
- enableLogging() - Method in class com.flagsmith.FlagsmithClient.Builder
-
Enables logging, the project importing this module must include an implementation slf4j in their pom.
- enableLogging(FlagsmithLoggerLevel) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Enables logging, the project importing this module must include an implementation slf4j in their pom.
- enableLogging(Logger) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Enables logging, the project importing this module must include an implementation slf4j in their pom.
- Engine - Class in com.flagsmith.flagengine
- Engine() - Constructor for class com.flagsmith.flagengine.Engine
- EnvironmentModel - Class in com.flagsmith.flagengine.environments
- EnvironmentModel() - Constructor for class com.flagsmith.flagengine.environments.EnvironmentModel
- EQUAL - com.flagsmith.flagengine.segments.constants.SegmentConditions
- equals(Object) - Method in class com.flagsmith.flagengine.features.FeatureModel
- equals(Object) - Method in class com.flagsmith.flagengine.features.FeatureStateModel
- error(String, Object...) - Method in class com.flagsmith.FlagsmithLogger
-
Prints error into the log.
- ERROR - com.flagsmith.FlagsmithLoggerLevel
- estimatedSize() - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- estimatedSize() - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Returns the approximate number of entries in this cache.
- evaluateDefaultFlag(String) - Method in class com.flagsmith.FlagsmithFlagDefaults
-
evaluate the default feature flag.
- evaluateDefaultFlag(String) - Method in interface com.flagsmith.interfaces.DefaultFlagHandler
- evaluateIdentityInSegment(IdentityModel, SegmentModel, List<? extends TraitModel>) - Static method in class com.flagsmith.flagengine.segments.SegmentEvaluator
-
Evaluate the traits in identities and overrides with rules from segments.
- executeAsync(Request, TypeReference<T>, Boolean) - Method in class com.flagsmith.threads.RequestProcessor
-
Execute the request in async mode.
- executeAsync(Request, TypeReference<T>, Boolean, Retry) - Method in class com.flagsmith.threads.RequestProcessor
-
Execute the response in async mode.
- executeAsync(Request, Boolean) - Method in class com.flagsmith.threads.RequestProcessor
-
Execute the response in async mode and do not unmarshall.
- expireAfterAccess(int, TimeUnit) - Method in class com.flagsmith.config.FlagsmithCacheConfig.Builder
-
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last read.
- expireAfterWrite(int, TimeUnit) - Method in class com.flagsmith.config.FlagsmithCacheConfig.Builder
-
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.
F
- FeatureModel - Class in com.flagsmith.flagengine.features
- FeatureModel() - Constructor for class com.flagsmith.flagengine.features.FeatureModel
- FeatureNotFoundError - Exception in com.flagsmith.exceptions
- FeatureNotFoundError() - Constructor for exception com.flagsmith.exceptions.FeatureNotFoundError
- FeatureNotFoundError(String) - Constructor for exception com.flagsmith.exceptions.FeatureNotFoundError
- FeatureSegmentModel - Class in com.flagsmith.flagengine.features
- FeatureSegmentModel() - Constructor for class com.flagsmith.flagengine.features.FeatureSegmentModel
- FeatureSegmentModel(Integer) - Constructor for class com.flagsmith.flagengine.features.FeatureSegmentModel
- FeatureStateModel - Class in com.flagsmith.flagengine.features
- FeatureStateModel() - Constructor for class com.flagsmith.flagengine.features.FeatureStateModel
- FeatureStateNotFound - Exception in com.flagsmith.flagengine.utils.exceptions
- FeatureStateNotFound() - Constructor for exception com.flagsmith.flagengine.utils.exceptions.FeatureStateNotFound
- Flag - Class in com.flagsmith.models
- Flag() - Constructor for class com.flagsmith.models.Flag
- Flags - Class in com.flagsmith.models
- Flags() - Constructor for class com.flagsmith.models.Flags
- FlagsAndTraitsResponse - Class in com.flagsmith.responses
- FlagsAndTraitsResponse() - Constructor for class com.flagsmith.responses.FlagsAndTraitsResponse
- FlagsmithApiError - Exception in com.flagsmith.exceptions
- FlagsmithApiError() - Constructor for exception com.flagsmith.exceptions.FlagsmithApiError
- FlagsmithApiError(String) - Constructor for exception com.flagsmith.exceptions.FlagsmithApiError
- FlagsmithApiWrapper - Class in com.flagsmith
- FlagsmithApiWrapper(FlagsmithConfig, HashMap<String, String>, FlagsmithLogger, String) - Constructor for class com.flagsmith.FlagsmithApiWrapper
-
Instantiate with config, custom headers, logger and apikey.
- FlagsmithApiWrapper(FlagsmithConfig, HashMap<String, String>, FlagsmithLogger, String, RequestProcessor) - Constructor for class com.flagsmith.FlagsmithApiWrapper
-
Instantiate with config, custom headers, logger, apikey and request processor.
- FlagsmithApiWrapper(FlagsmithCache, FlagsmithConfig, HashMap<String, String>, FlagsmithLogger, String) - Constructor for class com.flagsmith.FlagsmithApiWrapper
-
Instantiate with cache.
- FlagsmithCache - Interface in com.flagsmith.interfaces
-
Here are the fields we expose from the cache to outside this library.
- FlagsmithCacheConfig - Class in com.flagsmith.config
- FlagsmithCacheConfig.Builder - Class in com.flagsmith.config
- FlagsmithCacheConfig.FlagsmithCacheImpl - Class in com.flagsmith.config
- FlagsmithCacheImpl(Cache<String, Flags>) - Constructor for class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- FlagsmithCacheImpl(Cache<String, Flags>, String) - Constructor for class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- FlagsmithClient - Class in com.flagsmith
-
A client for Flagsmith API.
- FlagsmithClient.Builder - Class in com.flagsmith
- FlagsmithClientError - Exception in com.flagsmith.exceptions
- FlagsmithClientError() - Constructor for exception com.flagsmith.exceptions.FlagsmithClientError
- FlagsmithClientError(String) - Constructor for exception com.flagsmith.exceptions.FlagsmithClientError
- FlagsmithConfig - Class in com.flagsmith.config
-
A default configuration for the Flagsmith client SDK.
- FlagsmithConfig(FlagsmithConfig.Builder) - Constructor for class com.flagsmith.config.FlagsmithConfig
- FlagsmithConfig.Builder - Class in com.flagsmith.config
- FlagsmithException - Exception in com.flagsmith
- FlagsmithException(String) - Constructor for exception com.flagsmith.FlagsmithException
- FlagsmithException(Throwable) - Constructor for exception com.flagsmith.FlagsmithException
- FlagsmithFlagDefaults - Class in com.flagsmith
- FlagsmithFlagDefaults() - Constructor for class com.flagsmith.FlagsmithFlagDefaults
- FlagsmithLogger - Class in com.flagsmith
- FlagsmithLogger() - Constructor for class com.flagsmith.FlagsmithLogger
- FlagsmithLoggerLevel - Enum in com.flagsmith
- FlagsmithRuntimeError - Exception in com.flagsmith.exceptions
- FlagsmithRuntimeError() - Constructor for exception com.flagsmith.exceptions.FlagsmithRuntimeError
- FlagsmithRuntimeError(String) - Constructor for exception com.flagsmith.exceptions.FlagsmithRuntimeError
- FlagsmithRuntimeError(Throwable) - Constructor for exception com.flagsmith.exceptions.FlagsmithRuntimeError
- FlagsmithSdk - Interface in com.flagsmith.interfaces
- flush() - Method in class com.flagsmith.threads.AnalyticsProcessor
-
Push the analytics to the server.
- fromApiFlag(JsonNode) - Static method in class com.flagsmith.models.Flag
-
Flag from api.
- fromApiFlags(JsonNode, AnalyticsProcessor, FlagsmithFlagDefaults) - Static method in class com.flagsmith.models.Flags
-
Return the flags instance.
- fromApiFlags(List<FeatureStateModel>, AnalyticsProcessor, FlagsmithFlagDefaults) - Static method in class com.flagsmith.models.Flags
-
Return the flags instance.
- fromFeatureStateModel(FeatureStateModel, Object) - Static method in class com.flagsmith.models.Flag
-
return flag from feature state model and identity id.
- fromFeatureStateModels(List<FeatureStateModel>, AnalyticsProcessor) - Static method in class com.flagsmith.models.Flags
-
Build flags object from list of feature states.
- fromFeatureStateModels(List<FeatureStateModel>, AnalyticsProcessor, Object) - Static method in class com.flagsmith.models.Flags
-
Build flags object from list of feature states.
- fromFeatureStateModels(List<FeatureStateModel>, AnalyticsProcessor, Object, DefaultFlagHandler) - Static method in class com.flagsmith.models.Flags
-
Build flags object from list of feature states.
- fromObject(Object) - Static method in class com.flagsmith.models.TraitConfig
-
Convert a user-provided object to a TraitConfig instance.
G
- getAllFlags() - Method in class com.flagsmith.models.Flags
-
returns the list of all flags.
- getCache() - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- getCache() - Method in class com.flagsmith.FlagsmithApiWrapper
- getCache() - Method in class com.flagsmith.FlagsmithClient
-
Returns a FlagsmithCache cache object that encapsulates methods to manipulate the cache.
- getCache() - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Returns the Cache instance.
- getCache() - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- getCompositeKey() - Method in class com.flagsmith.flagengine.identities.IdentityModel
-
Returns the composite key for the identity.
- getConfig() - Method in class com.flagsmith.FlagsmithApiWrapper
- getConfig() - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- getEnvFlagsCacheKey() - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- getEnvFlagsCacheKey() - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Returns the environment level flags/traits cache key.
- getEnvironment() - Method in class com.flagsmith.FlagsmithApiWrapper
- getEnvironment() - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- getEnvironment() - Method in interface com.flagsmith.interfaces.IOfflineHandler
- getEnvironment() - Method in class com.flagsmith.offline.LocalFileHandler
- getEnvironmentFeatureState(EnvironmentModel, String) - Static method in class com.flagsmith.flagengine.Engine
-
Get a specific feature state for a given feature_name in a given environment.
- getEnvironmentFeatureStates(EnvironmentModel) - Static method in class com.flagsmith.flagengine.Engine
-
Get a list of feature states for a given environment.
- getEnvironmentFlags() - Method in class com.flagsmith.FlagsmithClient
-
Get all the default for flags for the current environment.
- getFeatureFlags(boolean) - Method in class com.flagsmith.FlagsmithApiWrapper
-
Get Feature Flags from API.
- getFeatureFlags(boolean) - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- getFeatureValue(String) - Method in class com.flagsmith.models.Flags
-
Get the feature value, null if not present.
- getFlag(String) - Method in class com.flagsmith.models.Flags
-
Get the feature, null if not present.
- getHashedPercentageForObjectIds(List<String>) - Method in class com.flagsmith.flagengine.utils.Hashing
-
Returns the percentage of hash of the list of object IDs.
- getHashedPercentageForObjectIds(List<String>, Integer) - Method in class com.flagsmith.flagengine.utils.Hashing
-
Returns the percentage of hash of the list of object IDs with iteration.
- getIdentityFeatureState(EnvironmentModel, IdentityModel, String, List<TraitModel>) - Static method in class com.flagsmith.flagengine.Engine
-
Get a specific feature state for a given identity in a given environment.
- getIdentityFeatureStates(EnvironmentModel, IdentityModel) - Static method in class com.flagsmith.flagengine.Engine
-
Get a list of feature states for a given identity in a given environment.
- getIdentityFeatureStates(EnvironmentModel, IdentityModel, List<TraitModel>) - Static method in class com.flagsmith.flagengine.Engine
-
Get a list of feature states for a given identity in a given environment.
- getIdentityFlags(String) - Method in class com.flagsmith.FlagsmithClient
-
Get all the flags for the current environment for a given identity.
- getIdentityFlags(String, Map<String, Object>) - Method in class com.flagsmith.FlagsmithClient
-
Get all the flags for the current environment for a given identity.
- getIdentityFlags(String, Map<String, Object>, boolean) - Method in class com.flagsmith.FlagsmithClient
-
Get all the flags for the current environment for a given identity.
- getIdentityFlagsCacheKey(String, boolean) - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- getIdentityFlagsCacheKey(String, boolean) - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Returns the cache key for a given identity.
- getIdentitySegments(EnvironmentModel, IdentityModel) - Static method in class com.flagsmith.flagengine.segments.SegmentEvaluator
-
Get segment identities from environment and identity.
- getIdentitySegments(EnvironmentModel, IdentityModel, List<TraitModel>) - Static method in class com.flagsmith.flagengine.segments.SegmentEvaluator
-
Get segment identities from environment and identity along with traits to override.
- getIdentitySegments(String) - Method in class com.flagsmith.FlagsmithClient
-
Get a list of segments that the given identity is in.
- getIdentitySegments(String, Map<String, Object>) - Method in class com.flagsmith.FlagsmithClient
-
Get a list of segments that the given identity is in.
- getIfPresent(String) - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- getIfPresent(String) - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Returns the value associated with key in this cache, or null if there is no cached value for key.
- getInstance() - Static method in class com.flagsmith.flagengine.utils.Hashing
-
Returns the hashing instance.
- getIsThreadAlive() - Method in class com.flagsmith.threads.PollingManager
-
Get thread status.
- getIsTransient() - Method in class com.flagsmith.models.TraitConfig
-
Get a boolean indicating whether the trait is transient.
- getLogger() - Method in class com.flagsmith.FlagsmithApiWrapper
- getMapper() - Static method in class com.flagsmith.MapperFactory
-
Get default ObjectMapper.
- getMD5(String) - Method in class com.flagsmith.flagengine.utils.Hashing
-
returns the mdt of the string provided.
- getRequestor() - Method in class com.flagsmith.FlagsmithApiWrapper
- getRequestor() - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- getRule() - Method in enum com.flagsmith.flagengine.segments.constants.SegmentRules
- getSdkTraitModelsFromTraitMap(Map<String, Object>) - Static method in class com.flagsmith.utils.ModelUtils
-
Convert a user-provided trait map to a list of trait models with transiency info.
- getSortValue() - Method in class com.flagsmith.flagengine.features.MultivariateFeatureStateValueModel
- getTraitModelsFromTraitMap(Map<String, Object>) - Static method in class com.flagsmith.utils.ModelUtils
-
Convert a user-provided trait map to a list of trait models.
- getValue() - Method in enum com.flagsmith.FlagsmithLoggerLevel
- getValue() - Method in class com.flagsmith.models.TraitConfig
-
Get trait value.
- getValue(Object) - Method in class com.flagsmith.flagengine.features.FeatureStateModel
-
Returns the value object.
- GREATER_THAN - com.flagsmith.flagengine.segments.constants.SegmentConditions
- GREATER_THAN_INCLUSIVE - com.flagsmith.flagengine.segments.constants.SegmentConditions
H
- hashCode() - Method in class com.flagsmith.flagengine.features.FeatureModel
- Hashing - Class in com.flagsmith.flagengine.utils
- httpError(Request, IOException, boolean) - Method in class com.flagsmith.FlagsmithLogger
-
Based on configuration prints error into log or throws an exception.
- httpError(Request, Response, boolean) - Method in class com.flagsmith.FlagsmithLogger
-
Based on configuration prints error into log or throws an exception.
I
- identifyUserWithTraits(String, List<? extends TraitModel>, boolean, boolean) - Method in class com.flagsmith.FlagsmithApiWrapper
- identifyUserWithTraits(String, List<? extends TraitModel>, boolean, boolean) - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- IdentityModel - Class in com.flagsmith.flagengine.identities
- IdentityModel() - Constructor for class com.flagsmith.flagengine.identities.IdentityModel
- IN - com.flagsmith.flagengine.segments.constants.SegmentConditions
- info(String, Object...) - Method in class com.flagsmith.FlagsmithLogger
-
Prints info into the log.
- INFO - com.flagsmith.FlagsmithLoggerLevel
- IntegrationModel - Class in com.flagsmith.flagengine.environments.integrations
- IntegrationModel() - Constructor for class com.flagsmith.flagengine.environments.integrations.IntegrationModel
- invalidate(String) - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- invalidate(String) - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Discards any cached value for key userId.
- invalidateAll() - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- invalidateAll() - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Discards all entries in the cache.
- InvalidPercentageAllocation - Exception in com.flagsmith.flagengine.utils.exceptions
- InvalidPercentageAllocation() - Constructor for exception com.flagsmith.flagengine.utils.exceptions.InvalidPercentageAllocation
- IOfflineHandler - Interface in com.flagsmith.interfaces
- IS_NOT_SET - com.flagsmith.flagengine.segments.constants.SegmentConditions
- IS_SET - com.flagsmith.flagengine.segments.constants.SegmentConditions
- isBoolean(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Is the object of type Boolean?.
- isDouble(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Is the object of type Double?.
- isFeatureEnabled(String) - Method in class com.flagsmith.models.Flags
-
is feature enabled, null if not present.
- isFloat(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Is the object of type Float?.
- isHigherPriority(FeatureStateModel) - Method in class com.flagsmith.flagengine.features.FeatureStateModel
-
Another FeatureStateModel is deemed to be higher priority if and only if it has a FeatureSegment and either this.FeatureSegment is null or the value of other.FeatureSegment.priority is lower than that of this.FeatureSegment.priority.
- isInteger(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Is the object of type Integer?.
- isRetry(Integer) - Method in class com.flagsmith.config.Retry
-
Should Retry or not?.
- isSemver(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Is the object of type Semver?.
- isSemver(String) - Static method in class com.flagsmith.flagengine.utils.SemanticVersioning
-
Checks if the given string have `:semver` suffix or not.
L
- LESS_THAN - com.flagsmith.flagengine.segments.constants.SegmentConditions
- LESS_THAN_INCLUSIVE - com.flagsmith.flagengine.segments.constants.SegmentConditions
- load(JsonNode, Class<T>) - Static method in class com.flagsmith.flagengine.utils.models.BaseModel
-
Load the json node to object of class type T.
- load(JsonNode, Class<T>) - Static method in class com.flagsmith.utils.models.BaseModel
-
Load the json node to object of class type T.
- LocalFileHandler - Class in com.flagsmith.offline
- LocalFileHandler(String) - Constructor for class com.flagsmith.offline.LocalFileHandler
-
Instantiate a LocalFileHandler for use as an OfflineHandler.
M
- MapperFactory - Class in com.flagsmith
-
Factory for object mapper instances.
- MapperFactory() - Constructor for class com.flagsmith.MapperFactory
- matchingFunction(Stream<Boolean>) - Method in class com.flagsmith.flagengine.segments.SegmentRuleModel
-
Run the matching function against the boolean stream.
- maxSize(int) - Method in class com.flagsmith.config.FlagsmithCacheConfig.Builder
-
Specifies the maximum number of entries the cache may contain.
- ModelUtils - Class in com.flagsmith.utils
- ModelUtils() - Constructor for class com.flagsmith.utils.ModelUtils
- MODULO - com.flagsmith.flagengine.segments.constants.SegmentConditions
- MultivariateFeatureOptionModel - Class in com.flagsmith.flagengine.features
- MultivariateFeatureOptionModel() - Constructor for class com.flagsmith.flagengine.features.MultivariateFeatureOptionModel
- MultivariateFeatureStateValueModel - Class in com.flagsmith.flagengine.features
- MultivariateFeatureStateValueModel() - Constructor for class com.flagsmith.flagengine.features.MultivariateFeatureStateValueModel
N
- newBuilder() - Static method in class com.flagsmith.config.FlagsmithCacheConfig
- newBuilder() - Static method in class com.flagsmith.config.FlagsmithConfig
- newBuilder() - Static method in class com.flagsmith.FlagsmithClient
- newGetRequest(HttpUrl) - Method in class com.flagsmith.FlagsmithApiWrapper
-
Returns a build request with GET.
- newGetRequest(HttpUrl) - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- newPostRequest(HttpUrl, RequestBody) - Method in class com.flagsmith.FlagsmithApiWrapper
-
Returns a build request with GET.
- newPostRequest(HttpUrl, RequestBody) - Method in interface com.flagsmith.interfaces.FlagsmithSdk
- NONE_RULE - com.flagsmith.flagengine.segments.constants.SegmentRules
- NOT_CONTAINS - com.flagsmith.flagengine.segments.constants.SegmentConditions
- NOT_EQUAL - com.flagsmith.flagengine.segments.constants.SegmentConditions
O
- OrganisationModel - Class in com.flagsmith.flagengine.organisations
- OrganisationModel() - Constructor for class com.flagsmith.flagengine.organisations.OrganisationModel
P
- PERCENTAGE_SPLIT - com.flagsmith.flagengine.segments.constants.SegmentConditions
- PollingManager - Class in com.flagsmith.threads
- PollingManager(FlagsmithClient) - Constructor for class com.flagsmith.threads.PollingManager
- PollingManager(FlagsmithClient, Integer) - Constructor for class com.flagsmith.threads.PollingManager
-
Instantiate the polling manager with client and interval for refresh.
- ProjectModel - Class in com.flagsmith.flagengine.projects
- ProjectModel() - Constructor for class com.flagsmith.flagengine.projects.ProjectModel
R
- readTimeout(int) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Override default read timeout for client connection.
- recordStats() - Method in class com.flagsmith.config.FlagsmithCacheConfig.Builder
-
Enables the accumulation of CacheStats during the operation of the cache.
- REGEX - com.flagsmith.flagengine.segments.constants.SegmentConditions
- removeSemver(String) - Static method in class com.flagsmith.flagengine.utils.SemanticVersioning
-
Remove the semver suffix(i.e: last 7 characters) from the given value.
- RequestProcessor - Class in com.flagsmith.threads
- RequestProcessor(OkHttpClient, FlagsmithLogger) - Constructor for class com.flagsmith.threads.RequestProcessor
- RequestProcessor(OkHttpClient, FlagsmithLogger, Retry) - Constructor for class com.flagsmith.threads.RequestProcessor
-
Instantiate with client, logger and retries.
- retries(Retry) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Add retries for HTTP request to the builder.
- Retry - Class in com.flagsmith.config
-
An implementation in Java for the Retry component of the Python urllib3 library.
- Retry(Integer) - Constructor for class com.flagsmith.config.Retry
- retryAttempted() - Method in class com.flagsmith.config.Retry
S
- SdkTraitModel - Class in com.flagsmith.models
- SdkTraitModel() - Constructor for class com.flagsmith.models.SdkTraitModel
- Segment - Class in com.flagsmith.models
- Segment() - Constructor for class com.flagsmith.models.Segment
- SegmentConditionModel - Class in com.flagsmith.flagengine.segments
- SegmentConditionModel() - Constructor for class com.flagsmith.flagengine.segments.SegmentConditionModel
- SegmentConditions - Enum in com.flagsmith.flagengine.segments.constants
- SegmentEvaluator - Class in com.flagsmith.flagengine.segments
- SegmentEvaluator() - Constructor for class com.flagsmith.flagengine.segments.SegmentEvaluator
- SegmentModel - Class in com.flagsmith.flagengine.segments
- SegmentModel() - Constructor for class com.flagsmith.flagengine.segments.SegmentModel
- SegmentRuleModel - Class in com.flagsmith.flagengine.segments
- SegmentRuleModel() - Constructor for class com.flagsmith.flagengine.segments.SegmentRuleModel
- SegmentRules - Enum in com.flagsmith.flagengine.segments.constants
- SemanticVersioning - Class in com.flagsmith.flagengine.utils
- SemanticVersioning() - Constructor for class com.flagsmith.flagengine.utils.SemanticVersioning
- setApiKey(String) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Set the environment API key.
- setDefaultFlagValueFunc(Function<String, BaseFlag>) - Method in class com.flagsmith.FlagsmithFlagDefaults
-
Set the evaluation function.
- setDefaultFlagValueFunc(Function<String, BaseFlag>) - Method in interface com.flagsmith.interfaces.DefaultFlagHandler
- setDefaultFlagValueFunction(Function<String, BaseFlag>) - Method in class com.flagsmith.FlagsmithClient.Builder
-
When a flag does not exist in Flagsmith or there is an error, the SDK will return null by default.
- setFlagsmithFlagDefaults(FlagsmithFlagDefaults) - Method in class com.flagsmith.config.FlagsmithConfig
- setInstance(Hashing) - Static method in class com.flagsmith.flagengine.utils.Hashing
-
Set the instance object.
- setLogger(Logger) - Method in class com.flagsmith.FlagsmithLogger
- setLogger(Logger, FlagsmithLoggerLevel) - Method in class com.flagsmith.FlagsmithLogger
- setRequestor(RequestProcessor) - Method in class com.flagsmith.FlagsmithApiWrapper
- sslSocketFactory(SSLSocketFactory, X509TrustManager) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Added custom SSL certificate.
- startPolling() - Method in class com.flagsmith.threads.PollingManager
-
Start polling of the environment in the new thread.
- stats() - Method in class com.flagsmith.config.FlagsmithCacheConfig.FlagsmithCacheImpl
- stats() - Method in interface com.flagsmith.interfaces.FlagsmithCache
-
Returns a current snapshot of this cache's cumulative statistics.
- stopPolling() - Method in class com.flagsmith.threads.PollingManager
-
Stop polling of the new environment.
T
- toBoolean(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Convert the object to Boolean.
- toDouble(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Convert the object to Double.
- toFloat(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Convert the object to float.
- toInteger(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Convert to object to Integer.
- toSemver(Object) - Static method in class com.flagsmith.flagengine.utils.types.TypeCasting
-
Convert the object to Semver.
- trackFeature(String) - Method in class com.flagsmith.threads.AnalyticsProcessor
-
Track the feature usage for analytics.
- TraitConfig - Class in com.flagsmith.models
-
Use TraitConfig to provide a trait value along with additional parameters.
- TraitConfig(Object, boolean) - Constructor for class com.flagsmith.models.TraitConfig
-
Get a TraitConfig instance.
- TraitModel - Class in com.flagsmith.flagengine.identities.traits
- TraitModel() - Constructor for class com.flagsmith.flagengine.identities.traits.TraitModel
- TypeCasting - Class in com.flagsmith.flagengine.utils.types
- TypeCasting() - Constructor for class com.flagsmith.flagengine.utils.types.TypeCasting
U
- uniqueSlug() - Method in class com.flagsmith.flagengine.organisations.OrganisationModel
- updateEnvironment() - Method in class com.flagsmith.FlagsmithClient
-
Load the environment flags in the environment variable from the API.
- updateTraits(List<? extends TraitModel>) - Method in class com.flagsmith.flagengine.identities.IdentityModel
-
Update the identity traits.
V
- valueOf(String) - Static method in enum com.flagsmith.flagengine.segments.constants.SegmentConditions
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.flagsmith.flagengine.segments.constants.SegmentRules
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.flagsmith.FlagsmithLoggerLevel
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.flagsmith.flagengine.segments.constants.SegmentConditions
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.flagsmith.flagengine.segments.constants.SegmentRules
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.flagsmith.FlagsmithLoggerLevel
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- waitWithBackoff() - Method in class com.flagsmith.config.Retry
- withAnalyticsProcessor(AnalyticsProcessor) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Set the analytics processor.
- withApiUrl(String) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Set the base URL for Flagsmith API, overriding default one.
- withCache(FlagsmithCacheConfig) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Enable in-memory caching for the Flagsmith API.
- withConfiguration(FlagsmithConfig) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Override default FlagsmithConfig for Flagsmith API.
- withCustomHttpHeaders(HashMap<String, String>) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Add custom HTTP headers to the calls.
- withEnableAnalytics(Boolean) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Enable Analytics Processor.
- withEnvironmentRefreshIntervalSeconds(Integer) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
set environment refresh rate with polling manager.
- withFlagsmithApiWrapper(FlagsmithApiWrapper) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Set the api wrapper.
- withLocalEvaluation(Boolean) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Local evaluation config.
- withOfflineHandler(IOfflineHandler) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Set the offline handler (used as a fallback or with offlineMode).
- withOfflineMode(Boolean) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Enable offline mode.
- withPollingManager(PollingManager) - Method in class com.flagsmith.FlagsmithClient.Builder
-
Set the polling manager.
- withProxy(Proxy) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Add a Proxy to the HttpClient.
- withSupportedProtocols(List<FlagsmithConfig.Protocol>) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Specify the list of protocols supported for calls to the server.
- writeTimeout(int) - Method in class com.flagsmith.config.FlagsmithConfig.Builder
-
Override default write timeout for client connection.
All Classes|All Packages