-
public class FlagsClient.CompanionCompanion object providing static access to FlagsClient instances.
This companion manages the retrieval of FlagsClient instances from the FlagsFeature, ensuring thread-safe access and proper lifecycle management.
-
-
Field Summary
Fields Modifier and Type Field Description public final static FlagsClient.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final FlagsClientget(String name, SdkCore sdkCore)Gets the FlagsClient with the specified name from the SDK core. final FlagsClientget(String name)Gets the FlagsClient with the specified name from the SDK core. final FlagsClientget()Gets the FlagsClient with the specified name from the SDK core. -
-
Method Detail
-
get
@JvmOverloads() final FlagsClient get(String name, SdkCore sdkCore)
Gets the FlagsClient with the specified name from the SDK core.
If no FlagsClient exists with the given name, returns a NoOpFlagsClient that logs errors according to the graceful mode policy.
- Parameters:
name- the FlagsClient name.sdkCore- the SDK instance.
-
get
@JvmOverloads() final FlagsClient get(String name)
Gets the FlagsClient with the specified name from the SDK core.
If no FlagsClient exists with the given name, returns a NoOpFlagsClient that logs errors according to the graceful mode policy.
- Parameters:
name- the FlagsClient name.
-
get
@JvmOverloads() final FlagsClient get()
Gets the FlagsClient with the specified name from the SDK core.
If no FlagsClient exists with the given name, returns a NoOpFlagsClient that logs errors according to the graceful mode policy.
-
-
-
-