Interface ClientContext


  • public interface ClientContext
    Context information provided by the 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.

    Since:
    5.0.0
    • Method Detail

      • getBasic

        BasicConfiguration getBasic()
        The SDK's basic global properties.
        Returns:
        the basic configuration
      • getHttp

        HttpConfiguration getHttp()
        The configured networking properties that apply to all components.
        Returns:
        the HTTP configuration
      • getLogging

        LoggingConfiguration getLogging()
        The configured logging properties that apply to all components.
        Returns:
        the logging configuration