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.class
AbstractScheduledService
Base class for services that can implementAbstractScheduledService.startUp()
andAbstractScheduledService.shutDown()
but while in the "running" state need to perform a periodic task.class
AbstractService
Base class for implementing services that can handleAbstractService.doStart()
andAbstractService.doStop()
requests, responding to them withAbstractService.notifyStarted()
andAbstractService.notifyStopped()
callbacks.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 ImmutableSetMultimap<Service.State,Service>
ServiceManager. servicesByState()
Provides a snapshot of the current state of all the services under management.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.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.
-