Class ShutdownResult
java.lang.Object
com.soklet.ShutdownResult
Immutable result of one Soklet lifecycle attempt.
A result is complete when every configured lifecycle component has affirmative termination proof and no framework-tracked activity remains. Throwable instances retain their exact identities and may contain application-sensitive data; callers own any logging or disclosure decision.
-
Method Summary
Modifier and TypeMethodDescriptiongetShutdownComponentResult(@NonNull ShutdownComponentType shutdownComponentType) Looks up terminal evidence for one configured shutdown component type.toString()Returns a bounded, single-line diagnostic with dispositions, component results, failure presence and residual-component counts when available.
-
Method Details
-
getShutdownDisposition
- Returns:
- aggregate shutdown disposition
-
getStartupDisposition
- Returns:
- startup disposition for the same lifecycle attempt
-
getShutdownComponentResults
- Returns:
- immutable shutdown component results in
ShutdownComponentTypeenum order
-
getShutdownComponentResult
public @NonNull Optional<@NonNull ShutdownComponentResult> getShutdownComponentResult(@NonNull ShutdownComponentType shutdownComponentType) Looks up terminal evidence for one configured shutdown component type.- Parameters:
shutdownComponentType- shutdown component type- Returns:
- shutdown component result, otherwise empty when that type was not configured
- Throws:
NullPointerException- ifshutdownComponentTypeis null
-
getStartupFailureCause
- Returns:
- the cause associated with a failed, timed-out, or canceled startup attempt, otherwise empty
-
getUnexpectedShutdownComponentTermination
public @NonNull Optional<@NonNull UnexpectedShutdownComponentTermination> getUnexpectedShutdownComponentTermination()- Returns:
- the first premature shutdown component termination, otherwise empty
-
isComplete
- Returns:
trueexactly when the disposition is notShutdownDisposition.INCOMPLETE
-
toString
Returns a bounded, single-line diagnostic with dispositions, component results, failure presence and residual-component counts when available. Does not render Throwable instances, residual-summary text or retained runtime objects. Inspect the typed accessors for full evidence.
-