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.class
Base class for services that can implementAbstractScheduledService.startUp()
andAbstractScheduledService.shutDown()
but while in the "running" state need to perform a periodic task.class
Base class for implementing services that can handleAbstractService.doStart()
andAbstractService.doStop()
requests, responding to them withAbstractService.notifyStarted()
andAbstractService.notifyStopped()
callbacks.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 TypeMethodDescriptionServiceManager.servicesByState()
Provides a snapshot of the current state of all the services under management.ServiceManager.startupDurations()
Returns the service load times.ServiceManager.startupTimes()
Returns the service load times.Methods in com.google.common.util.concurrent with parameters of type ServiceConstructor 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.