Interface StateTransitionManager
-
- All Known Implementing Classes:
DefaultStateTransitionManager
public interface StateTransitionManager
TheStateTransitionManager
decides on whetherAdaptiveScheduler
state transition should happen or not.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StateTransitionManager.Context
The interface that can be used by theStateTransitionManager
to communicate with the underlying system.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
Is called when the state transition manager should be closed.void
onChange()
Is called if the environment changed in a way that a state transition could be considered.void
onTrigger()
Is called when any previous observed environment changes shall be verified possibly triggering a state transition operation.
-
-
-
Method Detail
-
onChange
void onChange()
Is called if the environment changed in a way that a state transition could be considered.
-
onTrigger
void onTrigger()
Is called when any previous observed environment changes shall be verified possibly triggering a state transition operation.
-
close
default void close()
Is called when the state transition manager should be closed.
-
-