Uses of Interface
com.google.common.util.concurrent.Service
-
Packages that use Service Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of Service in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent that implement Service Modifier and Type Class Description class
AbstractExecutionThreadService
Base class for services that can implementAbstractExecutionThreadService.startUp()
,AbstractExecutionThreadService.run()
andAbstractExecutionThreadService.shutDown()
methods.class
AbstractIdleService
Base class for services that do not need a thread while "running" but may need one during startup and shutdown.private class
AbstractIdleService.DelegateService
class
AbstractScheduledService
Base class for services that can implementAbstractScheduledService.startUp()
andAbstractScheduledService.shutDown()
but while in the "running" state need to perform a periodic task.private class
AbstractScheduledService.ServiceDelegate
class
AbstractService
Base class for implementing services that can handleAbstractService.doStart()
andAbstractService.doStop()
requests, responding to them withAbstractService.notifyStarted()
andAbstractService.notifyStopped()
callbacks.private static class
ServiceManager.NoOpService
AService
instance that does nothing.Fields in com.google.common.util.concurrent declared as Service Modifier and Type Field Description private Service
AbstractExecutionThreadService. delegate
private Service
AbstractIdleService. delegate
(package private) Service
ServiceManager.ServiceListener. service
Fields in com.google.common.util.concurrent with type parameters of type Service Modifier and Type Field Description private ImmutableList<Service>
ServiceManager. services
(package private) SetMultimap<Service.State,Service>
ServiceManager.ServiceManagerState. servicesByState
(package private) java.util.Map<Service,Stopwatch>
ServiceManager.ServiceManagerState. startupTimers
Methods in com.google.common.util.concurrent that return Service Modifier and Type Method Description Service
AbstractExecutionThreadService. startAsync()
Service
AbstractIdleService. startAsync()
Service
AbstractScheduledService. startAsync()
Service
AbstractService. startAsync()
Service
Service. startAsync()
If the service state isService.State.NEW
, this initiates service startup and returns immediately.Service
AbstractExecutionThreadService. stopAsync()
Service
AbstractIdleService. stopAsync()
Service
AbstractScheduledService. stopAsync()
Service
AbstractService. stopAsync()
Service
Service. stopAsync()
Methods in com.google.common.util.concurrent that return types with arguments of type Service Modifier and Type Method Description (package private) ImmutableMultimap<Service.State,Service>
ServiceManager.ServiceManagerState. servicesByState()
ImmutableMultimap<Service.State,Service>
ServiceManager. servicesByState()
Provides a snapshot of the current state of all the services under management.(package private) ImmutableMap<Service,java.lang.Long>
ServiceManager.ServiceManagerState. startupTimes()
ImmutableMap<Service,java.lang.Long>
ServiceManager. startupTimes()
Returns the service load times.Methods in com.google.common.util.concurrent with parameters of type Service Modifier and Type Method Description void
ServiceManager.Listener. failure(Service service)
Called when a component service has failed.(package private) void
ServiceManager.ServiceManagerState. fireFailedListeners(Service service)
(package private) void
ServiceManager.ServiceManagerState. transitionService(Service service, Service.State from, Service.State to)
Updates the state with the given service transition.(package private) void
ServiceManager.ServiceManagerState. tryStartTiming(Service service)
Attempts to start the timer immediately prior to the service being started viastartAsync()
.Constructors in com.google.common.util.concurrent with parameters of type Service Constructor Description ServiceListener(Service service, java.lang.ref.WeakReference<ServiceManager.ServiceManagerState> state)
Constructor parameters in com.google.common.util.concurrent with type arguments of type Service Constructor Description ServiceManager(java.lang.Iterable<? extends Service> services)
Constructs a new instance for managing the given services.ServiceManagerState(ImmutableCollection<Service> services)
It is implicitly assumed that all the services are NEW and that they will all remain NEW until all the Listeners are installed andServiceManager.ServiceManagerState.markReady()
is called.
-