public final class DataSourceBuildInputs
extends java.lang.Object
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()