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.startUp() , AbstractExecutionThreadService.run() and AbstractExecutionThreadService.shutDown()
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.startUp() and AbstractScheduledService.shutDown() but while in
the "running" state need to perform a periodic task. |
class |
AbstractService
Base class for implementing services that can handle
AbstractService.doStart() and AbstractService.doStop()
requests, responding to them with AbstractService.notifyStarted() and AbstractService.notifyStopped()
callbacks. |
Modifier and Type | Method and Description |
---|---|
Service |
AbstractService.startAsync() |
Service |
AbstractExecutionThreadService.startAsync() |
Service |
AbstractScheduledService.startAsync() |
Service |
AbstractIdleService.startAsync() |
Service |
Service.startAsync()
If the service state is
Service.State.NEW , this initiates service startup and returns
immediately. |
Service |
AbstractService.stopAsync() |
Service |
AbstractExecutionThreadService.stopAsync() |
Service |
AbstractScheduledService.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–2017. All rights reserved.