Uses of Interface
com.google.common.util.concurrent.Service
-
Packages that use Service Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of Service in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent that implement Service Modifier and Type Class Description classAbstractExecutionThreadServiceBase class for services that can implementAbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods.classAbstractIdleServiceBase class for services that do not need a thread while "running" but may need one during startup and shutdown.private classAbstractIdleService.DelegateServiceclassAbstractScheduledServiceBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.private classAbstractScheduledService.ServiceDelegateclassAbstractServiceBase class for implementing services that can handleAbstractService.doStart()andAbstractService.doStop()requests, responding to them withAbstractService.notifyStarted()andAbstractService.notifyStopped()callbacks.private static classServiceManager.NoOpServiceAServiceinstance that does nothing.Fields in com.google.common.util.concurrent declared as Service Modifier and Type Field Description private ServiceAbstractExecutionThreadService. delegateprivate ServiceAbstractIdleService. delegate(package private) ServiceServiceManager.ServiceListener. serviceFields in com.google.common.util.concurrent with type parameters of type Service Modifier and Type Field Description private ImmutableList<Service>ServiceManager. services(package private) SetMultimap<Service.State,Service>ServiceManager.ServiceManagerState. servicesByState(package private) java.util.Map<Service,Stopwatch>ServiceManager.ServiceManagerState. startupTimersMethods in com.google.common.util.concurrent that return Service Modifier and Type Method Description ServiceAbstractExecutionThreadService. startAsync()ServiceAbstractIdleService. startAsync()ServiceAbstractScheduledService. startAsync()ServiceAbstractService. startAsync()ServiceService. startAsync()If the service state isService.State.NEW, this initiates service startup and returns immediately.ServiceAbstractExecutionThreadService. stopAsync()ServiceAbstractIdleService. stopAsync()ServiceAbstractScheduledService. stopAsync()ServiceAbstractService. stopAsync()ServiceService. stopAsync()Methods in com.google.common.util.concurrent that return types with arguments of type Service Modifier and Type Method Description (package private) ImmutableSetMultimap<Service.State,Service>ServiceManager.ServiceManagerState. servicesByState()ImmutableSetMultimap<Service.State,Service>ServiceManager. servicesByState()Provides a snapshot of the current state of all the services under management.ImmutableMultimap<Service.State,Service>ServiceManagerBridge. servicesByState()(package private) ImmutableMap<Service,java.lang.Long>ServiceManager.ServiceManagerState. startupTimes()ImmutableMap<Service,java.lang.Long>ServiceManager. startupTimes()Returns the service load times.Methods in com.google.common.util.concurrent with parameters of type Service Modifier and Type Method Description (package private) voidServiceManager.ServiceManagerState. enqueueFailedEvent(Service service)voidServiceManager.Listener. failure(Service service)Called 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 Service Constructor Description FailedService(Service service)ServiceListener(Service service, java.lang.ref.WeakReference<ServiceManager.ServiceManagerState> state)Constructor parameters in com.google.common.util.concurrent with type arguments of type Service Constructor Description ServiceManager(java.lang.Iterable<? extends Service> services)Constructs a new instance for managing the given services.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.
-