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. |
class |
ForwardingService
A
Service that forwards all method calls to another service. |
Modifier and Type | Method and Description |
---|---|
protected abstract Service |
ForwardingService.delegate() |
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-2012. All Rights Reserved.