Class BasicConfiguration
- java.lang.Object
-
- com.launchdarkly.sdk.server.interfaces.BasicConfiguration
-
public final class BasicConfiguration extends java.lang.ObjectThe 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)Deprecated.BasicConfiguration(java.lang.String sdkKey, boolean offline, int threadPriority, ApplicationInfo applicationInfo)Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationInfogetApplicationInfo()The metadata about the application using this SDK.java.lang.StringgetSdkKey()Returns the configured SDK key.intgetThreadPriority()The thread priority that should be used for any worker threads created by SDK components.booleanisOffline()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)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)Deprecated.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)
-
-