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 classAbstractExecutionThreadServiceBase class for services that can implementAbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods.classAbstractIdleServiceBase class for services that do not need a thread while "running" but may need one during startup and shutdown.classAbstractScheduledServiceBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.classAbstractServiceBase 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 ServiceAbstractExecutionThreadService. startAsync()ServiceAbstractIdleService. startAsync()ServiceAbstractScheduledService. startAsync()ServiceAbstractService. startAsync()ServiceService. startAsync()If the service state isService.State.NEW, this initiates service startup and returns immediately.ServiceAbstractExecutionThreadService. stopAsync()ServiceAbstractIdleService. stopAsync()ServiceAbstractScheduledService. stopAsync()ServiceAbstractService. stopAsync()ServiceService. 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,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 voidServiceManager.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(Iterable<? extends Service> services)Constructs a new instance for managing the given services.
-