public interface ClientContext
LDClient when creating components.
This is passed as a parameter to DataStoreFactory.createDataStore(ClientContext, DataStoreUpdates),
etc. Component factories do not receive the entire LDConfig because
it could contain factory objects that have mutable state, and because components should not be able
to access the configurations of unrelated components.
The actual implementation class may contain other properties that are only relevant to the built-in SDK components and are therefore not part of the public interface; this allows the SDK to add its own context information as needed without disturbing the public API.
| Modifier and Type | Method and Description |
|---|---|
HttpConfiguration |
getHttpConfiguration()
The configured networking properties that apply to all components.
|
LoggingConfiguration |
getLoggingConfiguration()
The configured logging properties that apply to all components.
|
java.lang.String |
getSdkKey()
The current
LDClient instance's SDK key. |
int |
getThreadPriority()
The thread priority that should be used for any worker threads created by SDK components.
|
boolean |
isOffline()
True if the SDK was configured to be completely offline.
|
java.lang.String getSdkKey()
LDClient instance's SDK key.boolean isOffline()
LDConfig.Builder.offline(boolean)HttpConfiguration getHttpConfiguration()
LoggingConfiguration getLoggingConfiguration()
int getThreadPriority()
LDConfig.Builder.threadPriority(int)