Uses of Class
com.google.common.util.concurrent.Service.State
-
Packages that use Service.State Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of Service.State in com.google.common.util.concurrent
Fields in com.google.common.util.concurrent declared as Service.State Modifier and Type Field Description (package private) Service.State
AbstractService.StateSnapshot. state
The internal state, which equals external state unless shutdownWhenStartupFinishes is true.Fields in com.google.common.util.concurrent with type parameters of type Service.State Modifier and Type Field Description (package private) SetMultimap<Service.State,Service>
ServiceManager.ServiceManagerState. servicesByState
(package private) Multiset<Service.State>
ServiceManager.ServiceManagerState. states
Methods in com.google.common.util.concurrent that return Service.State Modifier and Type Method Description (package private) Service.State
AbstractService.StateSnapshot. externalState()
Service.State
AbstractExecutionThreadService. state()
Service.State
AbstractIdleService. state()
Service.State
AbstractScheduledService. state()
Service.State
AbstractService. state()
Service.State
Service. state()
Returns the lifecycle state of the service.static Service.State
Service.State. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Service.State[]
Service.State. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.google.common.util.concurrent that return types with arguments of type Service.State Modifier and Type Method Description (package private) ImmutableMultimap<Service.State,Service>
ServiceManager.ServiceManagerState. servicesByState()
ImmutableMultimap<Service.State,Service>
ServiceManager. servicesByState()
Provides a snapshot of the current state of all the services under management.Methods in com.google.common.util.concurrent with parameters of type Service.State Modifier and Type Method Description private void
AbstractService. checkCurrentState(Service.State expected)
Checks that the current state is equal to the expected state.private void
AbstractService. enqueueFailedEvent(Service.State from, java.lang.Throwable cause)
private void
AbstractService. enqueueStoppingEvent(Service.State from)
private void
AbstractService. enqueueTerminatedEvent(Service.State from)
void
Service.Listener. failed(Service.State from, java.lang.Throwable failure)
Called when the service transitions to the FAILED state.void
ServiceManager.ServiceListener. failed(Service.State from, java.lang.Throwable failure)
void
Service.Listener. stopping(Service.State from)
Called when the service transitions to the STOPPING state.void
ServiceManager.ServiceListener. stopping(Service.State from)
private static ListenerCallQueue.Event<Service.Listener>
AbstractService. stoppingEvent(Service.State from)
void
Service.Listener. terminated(Service.State from)
Called when the service transitions to the TERMINATED state.void
ServiceManager.ServiceListener. terminated(Service.State from)
private static ListenerCallQueue.Event<Service.Listener>
AbstractService. terminatedEvent(Service.State from)
(package private) void
ServiceManager.ServiceManagerState. transitionService(Service service, Service.State from, Service.State to)
Updates the state with the given service transition.Constructors in com.google.common.util.concurrent with parameters of type Service.State Constructor Description StateSnapshot(Service.State internalState)
StateSnapshot(Service.State internalState, boolean shutdownWhenStartupFinishes, java.lang.Throwable failure)
-