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
Modifier 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 currentRunLevel
of 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 aRunLevel
or a timeout occurs.- Parameters:
runLevel
- The minimumRunLevel
to wait for.maxWaitDuration
- The maximumDuration
to wait for theRunLevel
.- Returns:
- The reached
RunLevel
which is at least the wantedRunLevel
and may be a higherRunLevel
. - Throws:
TimeoutException
- Thrown if theRunLevel
was not reached within the maximum waiting time.- Since:
- 5.2.181205
-