Uses of Interface
com.google.common.util.concurrent.Service
Packages that use Service
-
Uses of Service in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent that implement ServiceModifier and TypeClassDescriptionclass
Base class for services that can implementAbstractExecutionThreadService.startUp()
,AbstractExecutionThreadService.run()
andAbstractExecutionThreadService.shutDown()
methods.class
Base class for services that do not need a thread while "running" but may need one during startup and shutdown.private final class
class
Base class for services that can implementAbstractScheduledService.startUp()
andAbstractScheduledService.shutDown()
but while in the "running" state need to perform a periodic task.private final class
class
Base class for implementing services that can handleAbstractService.doStart()
andAbstractService.doStop()
requests, responding to them withAbstractService.notifyStarted()
andAbstractService.notifyStopped()
callbacks.private static final class
AService
instance that does nothing.Fields in com.google.common.util.concurrent declared as ServiceModifier and TypeFieldDescriptionprivate final Service
AbstractExecutionThreadService.delegate
private final Service
AbstractIdleService.delegate
(package private) final Service
ServiceManager.ServiceListener.service
Fields in com.google.common.util.concurrent with type parameters of type ServiceModifier and TypeFieldDescriptionprivate final ImmutableList
<Service> ServiceManager.services
(package private) final SetMultimap
<Service.State, Service> ServiceManager.ServiceManagerState.servicesByState
(package private) final IdentityHashMap
<Service, Stopwatch> ServiceManager.ServiceManagerState.startupTimers
Methods in com.google.common.util.concurrent that return ServiceModifier and TypeMethodDescriptionfinal Service
AbstractExecutionThreadService.startAsync()
final Service
AbstractIdleService.startAsync()
final Service
AbstractScheduledService.startAsync()
final Service
AbstractService.startAsync()
Service.startAsync()
If the service state isService.State.NEW
, this initiates service startup and returns immediately.final Service
AbstractExecutionThreadService.stopAsync()
final Service
AbstractIdleService.stopAsync()
final Service
AbstractScheduledService.stopAsync()
final Service
AbstractService.stopAsync()
Service.stopAsync()
Methods in com.google.common.util.concurrent that return types with arguments of type ServiceModifier and TypeMethodDescription(package private) ImmutableSetMultimap
<Service.State, Service> ServiceManager.ServiceManagerState.servicesByState()
ServiceManager.servicesByState()
Provides a snapshot of the current state of all the services under management.ServiceManagerBridge.servicesByState()
ServiceManager.startupDurations()
Returns the service load times.(package private) ImmutableMap
<Service, Long> ServiceManager.ServiceManagerState.startupTimes()
ServiceManager.startupTimes()
Returns the service load times.Methods in com.google.common.util.concurrent with parameters of type ServiceModifier and TypeMethodDescription(package private) void
ServiceManager.ServiceManagerState.enqueueFailedEvent
(Service service) void
Called when a component service has failed.(package private) void
ServiceManager.ServiceManagerState.transitionService
(Service service, Service.State from, Service.State to) Updates the state with the given service transition.(package private) void
ServiceManager.ServiceManagerState.tryStartTiming
(Service service) Attempts to start the timer immediately prior to the service being started viastartAsync()
.Constructors in com.google.common.util.concurrent with parameters of type ServiceModifierConstructorDescription(package private)
FailedService
(Service service) (package private)
ServiceListener
(Service service, WeakReference<ServiceManager.ServiceManagerState> state) Constructor parameters in com.google.common.util.concurrent with type arguments of type ServiceModifierConstructorDescriptionServiceManager
(Iterable<? extends Service> services) Constructs a new instance for managing the given services.(package private)
ServiceManagerState
(ImmutableCollection<Service> services) It is implicitly assumed that all the services are NEW and that they will all remain NEW until all the Listeners are installed andServiceManager.ServiceManagerState.markReady()
is called.