Class FlagChangeEvent
java.lang.Object
com.launchdarkly.sdk.server.interfaces.FlagChangeEvent
- Direct Known Subclasses:
FlagValueChangeEvent
public class FlagChangeEvent
extends java.lang.Object
Parameter class used with
FlagChangeListener
.
This is not an analytics event to be sent to LaunchDarkly; it is a notification to the application.
- Since:
- 5.0.0
- See Also:
FlagChangeListener
,FlagValueChangeEvent
,FlagTracker.addFlagChangeListener(FlagChangeListener)
-
Constructor Summary
Constructors Constructor Description FlagChangeEvent(java.lang.String key)
Constructs a new instance. -
Method Summary
Modifier and Type Method Description java.lang.String
getKey()
Returns the key of the feature flag whose configuration has changed.
-
Constructor Details
-
FlagChangeEvent
public FlagChangeEvent(java.lang.String key)Constructs a new instance.- Parameters:
key
- the feature flag key
-
-
Method Details
-
getKey
public java.lang.String getKey()Returns the key of the feature flag whose configuration has changed.The specified flag may have been modified directly, or this may be an indirect change due to a change in some other flag that is a prerequisite for this flag, or a user segment that is referenced in the flag's rules.
- Returns:
- the flag key
-