Interface LDReactorClientInterface
-
- All Known Implementing Classes:
LDReactorClient
public interface LDReactorClientInterface
A version ofLDClient
that is adapted to support reactive stream programming.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<FeatureFlagsState>
allFlagsState(LDContext context, FlagsStateOption... options)
reactor.core.publisher.Mono<java.lang.Boolean>
boolVariation(java.lang.String featureKey, LDContext context, boolean defaultValue)
reactor.core.publisher.Mono<EvaluationDetail<java.lang.Boolean>>
boolVariationDetail(java.lang.String featureKey, LDContext context, boolean defaultValue)
reactor.core.publisher.Mono<java.lang.Void>
close()
SeeLDClient.close()
.reactor.core.publisher.Mono<java.lang.Double>
doubleVariation(java.lang.String featureKey, LDContext context, double defaultValue)
reactor.core.publisher.Mono<EvaluationDetail<java.lang.Double>>
doubleVariationDetail(java.lang.String featureKey, LDContext context, double defaultValue)
void
flush()
SeeLDClient.flush()
.BigSegmentStoreStatusProvider
getBigSegmentStoreStatusProvider()
DataSourceStatusProvider
getDataSourceStatusProvider()
DataStoreStatusProvider
getDataStoreStatusProvider()
FlagTracker
getFlagTracker()
void
identify(LDContext context)
reactor.core.publisher.Mono<java.lang.Integer>
intVariation(java.lang.String featureKey, LDContext context, int defaultValue)
reactor.core.publisher.Mono<EvaluationDetail<java.lang.Integer>>
intVariationDetail(java.lang.String featureKey, LDContext context, int defaultValue)
boolean
isFlagKnown(java.lang.String featureKey)
boolean
isInitialized()
boolean
isOffline()
SeeLDClient.isOffline()
.reactor.core.publisher.Mono<LDValue>
jsonValueVariation(java.lang.String featureKey, LDContext context, LDValue defaultValue)
reactor.core.publisher.Mono<EvaluationDetail<LDValue>>
jsonValueVariationDetail(java.lang.String featureKey, LDContext context, LDValue defaultValue)
java.lang.String
secureModeHash(LDContext context)
reactor.core.publisher.Mono<java.lang.String>
stringVariation(java.lang.String featureKey, LDContext context, java.lang.String defaultValue)
reactor.core.publisher.Mono<EvaluationDetail<java.lang.String>>
stringVariationDetail(java.lang.String featureKey, LDContext context, java.lang.String defaultValue)
void
track(java.lang.String eventName, LDContext context)
void
trackData(java.lang.String eventName, LDContext context, LDValue data)
void
trackMetric(java.lang.String eventName, LDContext context, LDValue data, double metricValue)
java.lang.String
version()
SeeLDClient.version()
.
-
-
-
Method Detail
-
isInitialized
boolean isInitialized()
- Returns:
- see linked reference.
-
track
void track(java.lang.String eventName, LDContext context)
- Parameters:
eventName
- see linked reference.context
- see linked reference.
-
trackData
void trackData(java.lang.String eventName, LDContext context, LDValue data)
- Parameters:
eventName
- see linked reference.context
- see linked reference.data
- see linked reference.
-
trackMetric
void trackMetric(java.lang.String eventName, LDContext context, LDValue data, double metricValue)
- Parameters:
eventName
- see linked reference.context
- see linked reference.data
- see linked reference.metricValue
- see linked reference.
-
identify
void identify(LDContext context)
- Parameters:
context
- see linked reference.
-
allFlagsState
reactor.core.publisher.Mono<FeatureFlagsState> allFlagsState(LDContext context, FlagsStateOption... options)
- Parameters:
context
- see linked reference.options
- see linked reference.- Returns:
- a
Mono
that will emit theFeatureFlagsState
.
-
boolVariation
reactor.core.publisher.Mono<java.lang.Boolean> boolVariation(java.lang.String featureKey, LDContext context, boolean defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
intVariation
reactor.core.publisher.Mono<java.lang.Integer> intVariation(java.lang.String featureKey, LDContext context, int defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
doubleVariation
reactor.core.publisher.Mono<java.lang.Double> doubleVariation(java.lang.String featureKey, LDContext context, double defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
stringVariation
reactor.core.publisher.Mono<java.lang.String> stringVariation(java.lang.String featureKey, LDContext context, java.lang.String defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
jsonValueVariation
reactor.core.publisher.Mono<LDValue> jsonValueVariation(java.lang.String featureKey, LDContext context, LDValue defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
boolVariationDetail
reactor.core.publisher.Mono<EvaluationDetail<java.lang.Boolean>> boolVariationDetail(java.lang.String featureKey, LDContext context, boolean defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
intVariationDetail
reactor.core.publisher.Mono<EvaluationDetail<java.lang.Integer>> intVariationDetail(java.lang.String featureKey, LDContext context, int defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
doubleVariationDetail
reactor.core.publisher.Mono<EvaluationDetail<java.lang.Double>> doubleVariationDetail(java.lang.String featureKey, LDContext context, double defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
stringVariationDetail
reactor.core.publisher.Mono<EvaluationDetail<java.lang.String>> stringVariationDetail(java.lang.String featureKey, LDContext context, java.lang.String defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
jsonValueVariationDetail
reactor.core.publisher.Mono<EvaluationDetail<LDValue>> jsonValueVariationDetail(java.lang.String featureKey, LDContext context, LDValue defaultValue)
- Parameters:
featureKey
- see linked reference.context
- see linked reference.defaultValue
- see linked reference.- Returns:
- a
Mono
that will emit the evaluation result.
-
isFlagKnown
boolean isFlagKnown(java.lang.String featureKey)
- Parameters:
featureKey
- see linked reference.- Returns:
- see linked reference.
-
getFlagTracker
FlagTracker getFlagTracker()
- Returns:
- see linked reference.
-
getBigSegmentStoreStatusProvider
BigSegmentStoreStatusProvider getBigSegmentStoreStatusProvider()
SeeLDClient.getBigSegmentStoreStatusProvider()
. Getting theBigSegmentStoreStatusProvider
is not a blocking operation, but function calls on theBigSegmentStoreStatusProvider
may be.- Returns:
- see linked reference.
-
getDataStoreStatusProvider
DataStoreStatusProvider getDataStoreStatusProvider()
SeeLDClient.getDataStoreStatusProvider()
. Getting theDataStoreStatusProvider
is not a blocking operation, but function calls on theDataStoreStatusProvider
may be.- Returns:
- see linked reference.
-
getDataSourceStatusProvider
DataSourceStatusProvider getDataSourceStatusProvider()
SeeLDClient.getDataSourceStatusProvider()
. Getting theDataSourceStatusProvider
is not a blocking operation, but function calls on theDataSourceStatusProvider
may be.- Returns:
- see linked reference.
-
close
reactor.core.publisher.Mono<java.lang.Void> close()
SeeLDClient.close()
.- Returns:
- a Mono that completes when
LDClient.close()
completes.
-
flush
void flush()
SeeLDClient.flush()
.
-
isOffline
boolean isOffline()
SeeLDClient.isOffline()
.- Returns:
- see linked reference.
-
secureModeHash
java.lang.String secureModeHash(LDContext context)
- Parameters:
context
- see linked reference.- Returns:
- see linked reference.
-
version
java.lang.String version()
SeeLDClient.version()
.- Returns:
- see linked reference.
-
-