Uses of Interface
dev.mccue.guava.concurrent.Service
-
Uses of Service in dev.mccue.guava.concurrent
Classes in dev.mccue.guava.concurrent that implement ServiceModifier and TypeClassDescriptionclassBase class for services that can implement#startUp,#runand#shutDownmethods.classBase class for services that do not need a thread while "running" but may need one during startup and shutdown.classBase class for services that can implement#startUpand#shutDownbut while in the "running" state need to perform a periodic task.classBase class for implementing services that can handle#doStartand#doStoprequests, responding to them with#notifyStarted()and#notifyStopped()callbacks.Methods in dev.mccue.guava.concurrent that return ServiceModifier and TypeMethodDescriptionfinal ServiceAbstractExecutionThreadService.startAsync()final ServiceAbstractIdleService.startAsync()final ServiceAbstractScheduledService.startAsync()final ServiceAbstractService.startAsync()Service.startAsync()If the service state isState#NEW, this initiates service startup and returns immediately.final ServiceAbstractExecutionThreadService.stopAsync()final ServiceAbstractIdleService.stopAsync()final ServiceAbstractScheduledService.stopAsync()final ServiceAbstractService.stopAsync()Service.stopAsync()If the service isState#STARTING startingorState#RUNNING running, this initiates service shutdown and returns immediately.Methods in dev.mccue.guava.concurrent that return types with arguments of type ServiceModifier and TypeMethodDescriptiondev.mccue.guava.collect.ImmutableSetMultimap<Service.State,Service> ServiceManager.servicesByState()Provides a snapshot of the current state of all the services under management.ServiceManager.startupDurations()Returns the service load times.ServiceManager.startupTimes()Returns the service load times.Methods in dev.mccue.guava.concurrent with parameters of type ServiceModifier and TypeMethodDescriptionvoidCalled when a component service hasState#FAILED failed.Constructor parameters in dev.mccue.guava.concurrent with type arguments of type ServiceModifierConstructorDescriptionServiceManager(Iterable<? extends Service> services) Constructs a new instance for managing the given services.