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 TypeClassDescriptionclassBase class for services that can implementAbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods.classBase class for services that do not need a thread while "running" but may need one during startup and shutdown.classBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.classBase 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 ServiceAbstractExecutionThreadService.startAsync()final ServiceAbstractIdleService.startAsync()final ServiceAbstractScheduledService.startAsync()final ServiceAbstractService.startAsync()Service.startAsync()If the service state isService.State.NEW, this initiates service startup and returns immediately.final ServiceAbstractExecutionThreadService.stopAsync()final ServiceAbstractIdleService.stopAsync()final ServiceAbstractScheduledService.stopAsync()final ServiceAbstractService.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.