Send feedback
Enum ApiService.State (2.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.16.0 keyboard_arrow_down
public enum ApiService . State extends Enum<ApiService . State>
The lifecycle states of a service.
The ordering of the State enum is defined such that if there is a state transition
from A -> B
then A.compareTo(B) < 0
. N.B. The converse is not true, i.e. if
A.compareTo(B) < 0
then there is not guaranteed to be a valid state transition
A -> B
.
Static Fields
Name Description FAILED
A service in this state has encountered a problem and may not be operational. It cannot be
started nor stopped.
NEW
A service in this state is inactive. It does minimal work and consumes minimal resources.
RUNNING
A service in this state is operational.
STARTING
A service in this state is transitioning to #RUNNING .
STOPPING
A service in this state is transitioning to #TERMINATED .
TERMINATED
A service in this state has completed execution normally. It does minimal work and consumes
minimal resources.
Static Methods
Name Description valueOf(String name)
values()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-21 UTC.",
"confidential": False
}