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)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSdkKey()
Returns the configured SDK key.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)
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)
-
-