public abstract class FDv2PollingInitializerBuilder extends java.lang.Object implements DataSourceBuilder<Initializer>, DiagnosticDescription
This class is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode
Example:
LDConfig config = new LDConfig.Builder("my-sdk-key")
.dataSystem(Components.dataSystem().custom()
// DataSystemComponents.pollingInitializer() returns an instance of this builder.
.initializers(DataSystemComponents.pollingInitializer()
.pollInterval(Duration.ofMinutes(10)))
.synchronizers(DataSystemComponents.streamingSynchronizer(), DataSystemComponents.pollingSynchronizer())
.fDv1FallbackSynchronizer(DataSystemComponents.fDv1Polling()));
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
payloadFilter |
protected ServiceEndpoints |
serviceEndpointsOverride |
| Constructor and Description |
|---|
FDv2PollingInitializerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
LDValue |
describeConfiguration(ClientContext context)
Used internally by the SDK to inspect the configuration.
|
FDv2PollingInitializerBuilder |
payloadFilter(java.lang.String payloadFilter)
Sets the Payload Filter that will be used to filter the objects (flags, segments, etc.)
from this initializer.
|
FDv2PollingInitializerBuilder |
serviceEndpointsOverride(ServiceEndpointsBuilder serviceEndpointsOverride)
Sets overrides for the service endpoints.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildprotected ServiceEndpoints serviceEndpointsOverride
protected java.lang.String payloadFilter
public FDv2PollingInitializerBuilder serviceEndpointsOverride(ServiceEndpointsBuilder serviceEndpointsOverride)
serviceEndpointsOverride - the service endpoints to override the base endpointspublic FDv2PollingInitializerBuilder payloadFilter(java.lang.String payloadFilter)
payloadFilter - the filter to be usedpublic LDValue describeConfiguration(ClientContext context)
DiagnosticDescriptiondescribeConfiguration in interface DiagnosticDescriptioncontext - allows access to the client configurationLDValue or null