private static final class AbstractService.StateSnapshot
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Throwable |
failure
The exception that caused this service to fail.
|
(package private) boolean |
shutdownWhenStartupFinishes
If true, the user requested a shutdown while the service was still starting up.
|
(package private) Service.State |
state
The internal state, which equals external state unless shutdownWhenStartupFinishes is true.
|
Constructor and Description |
---|
StateSnapshot(Service.State internalState) |
StateSnapshot(Service.State internalState,
boolean shutdownWhenStartupFinishes,
java.lang.Throwable failure) |
Modifier and Type | Method and Description |
---|---|
(package private) Service.State |
externalState() |
(package private) java.lang.Throwable |
failureCause() |
final Service.State state
final boolean shutdownWhenStartupFinishes
@CheckForNull final java.lang.Throwable failure
null
unless the service
has failed.StateSnapshot(Service.State internalState)
StateSnapshot(Service.State internalState, boolean shutdownWhenStartupFinishes, @CheckForNull java.lang.Throwable failure)
Service.State externalState()
Service.state()
java.lang.Throwable failureCause()
Service.failureCause()