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
Deprecated.
Instead of using a
ForwardingService , consider using the
Service.Listener functionality to hook into the Service
lifecycle, or if you really do need to provide access to some Service
methods, consider just providing the few that you actually need (e.g. just
ForwardingService.startAndWait() ) and not implementing Service. |
Modifier and Type | Method and Description |
---|---|
protected abstract Service |
ForwardingService.delegate()
Deprecated.
|
Service |
AbstractExecutionThreadService.startAsync() |
Service |
ForwardingService.startAsync()
Deprecated.
|
Service |
Service.startAsync()
If the service state is
Service.State.NEW , this initiates service startup and returns
immediately. |
Service |
AbstractService.startAsync() |
Service |
AbstractIdleService.startAsync() |
Service |
AbstractScheduledService.startAsync() |
Service |
AbstractExecutionThreadService.stopAsync() |
Service |
ForwardingService.stopAsync()
Deprecated.
|
Service |
Service.stopAsync()
|
Service |
AbstractService.stopAsync() |
Service |
AbstractIdleService.stopAsync() |
Service |
AbstractScheduledService.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-2013. All Rights Reserved.