public final class DataSourceBuildInputs
extends java.lang.Object
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
This consolidates all the parameters needed to construct data source components, including HTTP configuration, logging, scheduling, and selector state.
| Constructor and Description |
|---|
DataSourceBuildInputs(LDLogger baseLogger,
int threadPriority,
DataSourceUpdateSink dataSourceUpdates,
ServiceEndpoints serviceEndpoints,
HttpConfiguration http,
java.util.concurrent.ScheduledExecutorService sharedExecutor,
com.launchdarkly.sdk.internal.events.DiagnosticStore diagnosticStore,
SelectorSource selectorSource)
Constructs a DataSourceBuilderContext.
|
| Modifier and Type | Method and Description |
|---|---|
LDLogger |
getBaseLogger()
Returns the base logger instance.
|
DataSourceUpdateSink |
getDataSourceUpdates()
Returns the data source update sink.
|
com.launchdarkly.sdk.internal.events.DiagnosticStore |
getDiagnosticStore()
Returns the diagnostic data accumulator.
|
HttpConfiguration |
getHttp()
Returns the HTTP configuration properties.
|
SelectorSource |
getSelectorSource()
Returns the selector source.
|
ServiceEndpoints |
getServiceEndpoints()
Returns the service endpoint URIs.
|
java.util.concurrent.ScheduledExecutorService |
getSharedExecutor()
Returns the shared executor service for scheduling.
|
int |
getThreadPriority()
Returns the thread priority for worker threads.
|
public DataSourceBuildInputs(LDLogger baseLogger, int threadPriority, DataSourceUpdateSink dataSourceUpdates, ServiceEndpoints serviceEndpoints, HttpConfiguration http, java.util.concurrent.ScheduledExecutorService sharedExecutor, com.launchdarkly.sdk.internal.events.DiagnosticStore diagnosticStore, SelectorSource selectorSource)
baseLogger - the base logger instancethreadPriority - the thread priority for worker threadsdataSourceUpdates - the data source update sinkserviceEndpoints - the service endpoint URIshttp - HTTP configuration propertiessharedExecutor - shared executor service for schedulingdiagnosticStore - diagnostic data accumulator (may be null)selectorSource - source for obtaining selectorspublic LDLogger getBaseLogger()
public int getThreadPriority()
public DataSourceUpdateSink getDataSourceUpdates()
public ServiceEndpoints getServiceEndpoints()
public HttpConfiguration getHttp()
public java.util.concurrent.ScheduledExecutorService getSharedExecutor()
public com.launchdarkly.sdk.internal.events.DiagnosticStore getDiagnosticStore()
public SelectorSource getSelectorSource()