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.private final classclassBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.private final classclassBase class for implementing services that can handleAbstractService.doStart()andAbstractService.doStop()requests, responding to them withAbstractService.notifyStarted()andAbstractService.notifyStopped()callbacks.private static final classAServiceinstance that does nothing.Fields in com.google.common.util.concurrent declared as ServiceModifier and TypeFieldDescriptionprivate final ServiceAbstractExecutionThreadService.delegateprivate final ServiceAbstractIdleService.delegate(package private) final ServiceServiceManager.ServiceListener.serviceFields 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.servicesByStateServiceManager.ServiceManagerState.startupTimersMethods 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 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) voidServiceManager.ServiceManagerState.enqueueFailedEvent(Service service) voidCalled when a component service has failed.(package private) voidServiceManager.ServiceManagerState.transitionService(Service service, Service.State from, Service.State to) Updates the state with the given service transition.(package private) voidServiceManager.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.