Uses of Interface
com.google.common.util.concurrent.Service
-
Uses of Service in com.google.common.util.concurrent
Modifier 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.Modifier 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()
Modifier 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.ModifierConstructorDescriptionServiceManager
(Iterable<? extends Service> services) Constructs a new instance for managing the given services.