Class BasicConfiguration
- java.lang.Object
-
- com.launchdarkly.sdk.server.interfaces.BasicConfiguration
-
public final class BasicConfiguration extends java.lang.Object
The most basic properties of the SDK client that are available to all SDK component factories.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority)
BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo)
BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo, ServiceEndpoints serviceEndpoints)
Constructs an instance.BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo, ServiceEndpoints serviceEndpoints, LDLogger baseLogger)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationInfo
getApplicationInfo()
The metadata about the application using this SDK.LDLogger
getBaseLogger()
Returns the base logger used by SDK components.java.lang.String
getSdkKey()
Returns the configured SDK key.ServiceEndpoints
getServiceEndpoints()
Returns the base service URIs used by SDK components.int
getThreadPriority()
The thread priority that should be used for any worker threads created by SDK components.boolean
isOffline()
Returns true if the client was configured to be completely offline.
-
-
-
Constructor Detail
-
BasicConfiguration
public BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo, ServiceEndpoints serviceEndpoints, LDLogger baseLogger)
Constructs an instance.- Parameters:
sdkKey
- the SDK keyoffline
- true if the SDK was configured to be completely offlinethreadPriority
- the thread priority that should be used for any worker threads created by SDK componentsapplicationInfo
- metadata about the application using this SDKserviceEndpoints
- the SDK's service URIsbaseLogger
- the base logger- Since:
- 5.10.0
-
BasicConfiguration
public BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo, ServiceEndpoints serviceEndpoints)
Constructs an instance.- Parameters:
sdkKey
- the SDK keyoffline
- true if the SDK was configured to be completely offlinethreadPriority
- the thread priority that should be used for any worker threads created by SDK componentsapplicationInfo
- metadata about the application using this SDKserviceEndpoints
- the SDK's service URIs
-
BasicConfiguration
@Deprecated public BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo)
Constructs an instance.- Parameters:
sdkKey
- the SDK keyoffline
- true if the SDK was configured to be completely offlinethreadPriority
- the thread priority that should be used for any worker threads created by SDK componentsapplicationInfo
- metadata about the application using this SDK
-
BasicConfiguration
@Deprecated public BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority)
Constructs an instance.- Parameters:
sdkKey
- the SDK keyoffline
- true if the SDK was configured to be completely offlinethreadPriority
- the thread priority that should be used for any worker threads created by SDK components
-
-
Method Detail
-
getSdkKey
public java.lang.String getSdkKey()
Returns the configured SDK key.- Returns:
- the SDK key
-
isOffline
public boolean isOffline()
Returns true if the client was configured to be completely offline.- Returns:
- true if offline
- See Also:
LDConfig.Builder.offline(boolean)
-
getThreadPriority
public int getThreadPriority()
The thread priority that should be used for any worker threads created by SDK components.- Returns:
- the thread priority
- See Also:
LDConfig.Builder.threadPriority(int)
-
getApplicationInfo
public ApplicationInfo getApplicationInfo()
The metadata about the application using this SDK.- Returns:
- the application info
- See Also:
LDConfig.Builder.applicationInfo(com.launchdarkly.sdk.server.integrations.ApplicationInfoBuilder)
-
getServiceEndpoints
public ServiceEndpoints getServiceEndpoints()
Returns the base service URIs used by SDK components.- Returns:
- the service endpoints
- See Also:
LDConfig.Builder.serviceEndpoints(com.launchdarkly.sdk.server.integrations.ServiceEndpointsBuilder)
-
getBaseLogger
public LDLogger getBaseLogger()
Returns the base logger used by SDK components. Suffixes may be added to the logger name for specific areas of functionality.- Returns:
- the base logger
- Since:
- 5.10.0
- See Also:
LDConfig.Builder.logging(LoggingConfigurationFactory)
-
-