Enum ApiService.State (2.40.0)

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()