public abstract class Components
extends java.lang.Object
Constructor and Description |
---|
Components() |
Modifier and Type | Method and Description |
---|---|
static EventProcessorFactory |
defaultEventProcessor()
Returns a factory for the default implementation of
EventProcessor , which
forwards all analytics events to LaunchDarkly (unless the client is offline or you have
set LDConfig.Builder.sendEvents(boolean) to false ). |
static UpdateProcessorFactory |
defaultUpdateProcessor()
Returns a factory for the default implementation of
UpdateProcessor , which receives
feature flag data from LaunchDarkly using either streaming or polling as configured (or does
nothing if the client is offline, or in LDD mode). |
static FeatureStoreFactory |
inMemoryFeatureStore()
Returns a factory for the default in-memory implementation of
FeatureStore . |
static EventProcessorFactory |
nullEventProcessor()
Returns a factory for a null implementation of
EventProcessor , which will discard
all analytics events and not send them to LaunchDarkly, regardless of any other configuration. |
static UpdateProcessorFactory |
nullUpdateProcessor()
Returns a factory for a null implementation of
UpdateProcessor , which does not
connect to LaunchDarkly, regardless of any other configuration. |
static RedisFeatureStoreBuilder |
redisFeatureStore()
Returns a factory with builder methods for creating a Redis-backed implementation of
FeatureStore ,
using RedisFeatureStoreBuilder.DEFAULT_URI . |
static RedisFeatureStoreBuilder |
redisFeatureStore(java.net.URI redisUri)
Returns a factory with builder methods for creating a Redis-backed implementation of
FeatureStore ,
specifying the Redis URI. |
public static FeatureStoreFactory inMemoryFeatureStore()
FeatureStore
.public static RedisFeatureStoreBuilder redisFeatureStore()
FeatureStore
,
using RedisFeatureStoreBuilder.DEFAULT_URI
.public static RedisFeatureStoreBuilder redisFeatureStore(java.net.URI redisUri)
FeatureStore
,
specifying the Redis URI.redisUri
- the URI of the Redis hostpublic static EventProcessorFactory defaultEventProcessor()
EventProcessor
, which
forwards all analytics events to LaunchDarkly (unless the client is offline or you have
set LDConfig.Builder.sendEvents(boolean)
to false
).public static EventProcessorFactory nullEventProcessor()
EventProcessor
, which will discard
all analytics events and not send them to LaunchDarkly, regardless of any other configuration.public static UpdateProcessorFactory defaultUpdateProcessor()
UpdateProcessor
, which receives
feature flag data from LaunchDarkly using either streaming or polling as configured (or does
nothing if the client is offline, or in LDD mode).public static UpdateProcessorFactory nullUpdateProcessor()
UpdateProcessor
, which does not
connect to LaunchDarkly, regardless of any other configuration.