| Package | Description |
|---|---|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExecutionThreadService
Base class for services that can implement
AbstractExecutionThreadService,
AbstractExecutionThreadService and
AbstractExecutionThreadService methods.
|
class |
AbstractIdleService
Base class for services that do not need a thread while "running" but may need one during startup and shutdown.
|
class |
AbstractScheduledService
Base class for services that can implement
AbstractScheduledService and
AbstractScheduledService but while in the "running" state need to perform a periodic task.
|
class |
AbstractService
Base class for implementing services that can handle
AbstractService and
AbstractService requests, responding to them with
AbstractService and
AbstractService callbacks.
|
| Modifier and Type | Method and Description |
|---|---|
Service |
AbstractIdleService.startAsync()
|
Service |
Service.startAsync()
If the service state is
Service, this initiates service startup and returns immediately.
|
Service |
AbstractExecutionThreadService.startAsync()
|
Service |
AbstractService.startAsync()
|
Service |
AbstractScheduledService.startAsync()
|
Service |
AbstractIdleService.stopAsync()
|
Service |
Service.stopAsync()
|
Service |
AbstractExecutionThreadService.stopAsync()
|
Service |
AbstractService.stopAsync()
|
Service |
AbstractScheduledService.stopAsync()
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMultimap |
ServiceManager.servicesByState()
Provides a snapshot of the current state of all the services under management.
|
ImmutableMap |
ServiceManager.startupTimes()
Returns the service load times.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceManager.Listener.failure(Service
Called when a component service has
failed.
|
| Constructor and Description | |
|---|---|
ServiceManager(Iterable
Constructs a new instance for managing the given services.
|