| Package | Description | 
|---|---|
| com.google.common.util.concurrent | Concurrency utilities. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractExecutionThreadServiceBase class for services that can implement  AbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods. | 
| class  | AbstractIdleServiceBase class for services that do not need a thread while "running"
 but may need one during startup and shutdown. | 
| class  | AbstractScheduledServiceBase class for services that can implement  AbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in 
 the "running" state need to perform a periodic task. | 
| class  | AbstractServiceBase class for implementing services that can handle  AbstractService.doStart()andAbstractService.doStop()requests, responding to them withAbstractService.notifyStarted()andAbstractService.notifyStopped()callbacks. | 
| Modifier and Type | Method and Description | 
|---|---|
| Service | AbstractScheduledService. startAsync() | 
| Service | AbstractService. startAsync() | 
| Service | AbstractExecutionThreadService. startAsync() | 
| Service | AbstractIdleService. startAsync() | 
| Service | Service. startAsync()If the service state is  Service.State.NEW, this initiates service startup and returns
 immediately. | 
| Service | AbstractScheduledService. stopAsync() | 
| Service | AbstractService. stopAsync() | 
| Service | AbstractExecutionThreadService. stopAsync() | 
| Service | AbstractIdleService. stopAsync() | 
| Service | Service. stopAsync() | 
| Modifier and Type | Method and Description | 
|---|---|
| ImmutableMultimap<Service.State,Service> | ServiceManager. servicesByState()Provides a snapshot of the current state of all the services under management. | 
| ImmutableMap<Service,Long> | ServiceManager. startupTimes()Returns the service load times. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ServiceManager.Listener. failure(Service service)Called when a component service has failed. | 
| Constructor and Description | 
|---|
| ServiceManager(Iterable<? extends Service> services)Constructs a new instance for managing the given services. | 
Copyright © 2010-2015. All Rights Reserved.