Package de.espirit.firstspirit.agency
Interface RunLevelAgent
@NonExtendable
public interface RunLevelAgent
Agent providing information about the current FirstSpirit server
RunLevel.- Since:
- 5.2.181205
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpecialistType<RunLevelAgent>Agent providing information about the current FirstSpirit serverRunLevel. -
Method Summary
-
Field Details
-
TYPE
Agent providing information about the current FirstSpirit serverRunLevel. The agent's technical type can be used to request the agent from aSpecialistsBroker.- Since:
- 5.2.181205
-
-
Method Details
-
getRunLevel
Returns the currentRunLevelof the FirstSpirit server.- Since:
- 5.2.181205
-
waitForRunLevel
@NotNull @NotNull RunLevel waitForRunLevel(@NotNull @NotNull RunLevel runLevel, @NotNull @NotNull Duration maxWaitDuration) throws TimeoutException Wait until the FirstSpirit server reaches aRunLevelor a timeout occurs.- Parameters:
runLevel- The minimumRunLevelto wait for.maxWaitDuration- The maximumDurationto wait for theRunLevel.- Returns:
- The reached
RunLevelwhich is at least the wantedRunLeveland may be a higherRunLevel. - Throws:
TimeoutException- Thrown if theRunLevelwas not reached within the maximum waiting time.- Since:
- 5.2.181205
-