@ThreadSafe public class UpdatableSbcGoalsConfig extends Object implements GoalConfigChangeNotifier
GoalConfigChangeNotifier.GoalConfigChangeListener
Constructor and Description |
---|
UpdatableSbcGoalsConfig(SbcGoalsConfig sbcGoalsConfig)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbcGoalsConfig |
config() |
void |
registerListener(GoalConfigChangeNotifier.GoalConfigChangeListener listener)
Register a
GoalConfigChangeNotifier.GoalConfigChangeListener
that will be called whenever the goal config is updated. |
String |
toString() |
void |
update(SbcGoalsConfig newConfig)
Update the current goals config with the given
SbcGoalsConfig |
public UpdatableSbcGoalsConfig(SbcGoalsConfig sbcGoalsConfig)
sbcGoalsConfig
- the goals config containing all balancing and triggering goals incremental or not.public SbcGoalsConfig config()
public void update(SbcGoalsConfig newConfig)
SbcGoalsConfig
newConfig
- - the new config that this should be updated with.public void registerListener(GoalConfigChangeNotifier.GoalConfigChangeListener listener)
GoalConfigChangeNotifier.GoalConfigChangeListener
that will be called whenever the goal config is updated.registerListener
in interface GoalConfigChangeNotifier