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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This webpage details the `ApiService.State` enum, which defines the lifecycle states of a service in the Java API."],["The latest version of `ApiService.State` is 2.46.1, but the page lists versions from 2.1.2 to 2.46.1, including version 2.31.1."],["The enum includes states such as `NEW`, `STARTING`, `RUNNING`, `STOPPING`, `TERMINATED`, and `FAILED`, each describing a different operational phase of a service."],["The ordering of the `State` enum values reflects the direction of valid state transitions, where a transition from state A to B means `A.compareTo(B) \u003c 0`, although the reverse is not always true."],["The class inherits several methods from the `Enum` and `Object` class, such as `valueOf()`, `name()`, and `wait()`."]]],[]]