Uses of Class
com.google.common.util.concurrent.Service.Listener
Packages that use Service.Listener
-
Uses of Service.Listener in com.google.common.util.concurrent
Subclasses of Service.Listener in com.google.common.util.concurrentModifier and TypeClassDescriptionprivate static final class
AService
that wraps another service and times how long it takes for it to start and also calls theServiceManager.ServiceManagerState.transitionService(Service, State, State)
, to record the state transitions.Fields in com.google.common.util.concurrent with type parameters of type Service.ListenerModifier and TypeFieldDescriptionprivate final ListenerCallQueue
<Service.Listener> AbstractService.listeners
The listeners to notify during a state transition.private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.RUNNING_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.STARTING_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.STOPPING_FROM_RUNNING_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.STOPPING_FROM_STARTING_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.TERMINATED_FROM_NEW_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.TERMINATED_FROM_RUNNING_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.TERMINATED_FROM_STARTING_EVENT
private static final ListenerCallQueue.Event
<Service.Listener> AbstractService.TERMINATED_FROM_STOPPING_EVENT
Methods in com.google.common.util.concurrent that return types with arguments of type Service.ListenerModifier and TypeMethodDescriptionprivate static ListenerCallQueue.Event
<Service.Listener> AbstractService.stoppingEvent
(Service.State from) private static ListenerCallQueue.Event
<Service.Listener> AbstractService.terminatedEvent
(Service.State from) Methods in com.google.common.util.concurrent with parameters of type Service.ListenerModifier and TypeMethodDescriptionfinal void
AbstractExecutionThreadService.addListener
(Service.Listener listener, Executor executor) final void
AbstractIdleService.addListener
(Service.Listener listener, Executor executor) final void
AbstractScheduledService.addListener
(Service.Listener listener, Executor executor) final void
AbstractService.addListener
(Service.Listener listener, Executor executor) void
Service.addListener
(Service.Listener listener, Executor executor) Registers aService.Listener
to be executed on the given executor.