Uses of Class
com.google.common.util.concurrent.Service.Listener
-
Packages that use Service.Listener Package Description com.google.common.util.concurrent Concurrency utilities. -
-
Uses of Service.Listener in com.google.common.util.concurrent
Subclasses of Service.Listener in com.google.common.util.concurrent Modifier and Type Class Description private static class
ServiceManager.ServiceListener
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.Listener Modifier and Type Field Description private java.util.List<ListenerCallQueue<Service.Listener>>
AbstractService. listeners
The listeners to notify during a state transition.private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. RUNNING_CALLBACK
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. STARTING_CALLBACK
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. STOPPING_FROM_RUNNING_CALLBACK
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. STOPPING_FROM_STARTING_CALLBACK
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. TERMINATED_FROM_NEW_CALLBACK
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. TERMINATED_FROM_RUNNING_CALLBACK
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. TERMINATED_FROM_STOPPING_CALLBACK
Methods in com.google.common.util.concurrent that return types with arguments of type Service.Listener Modifier and Type Method Description private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. stoppingCallback(Service.State from)
private static ListenerCallQueue.Callback<Service.Listener>
AbstractService. terminatedCallback(Service.State from)
Methods in com.google.common.util.concurrent with parameters of type Service.Listener Modifier and Type Method Description void
AbstractExecutionThreadService. addListener(Service.Listener listener, java.util.concurrent.Executor executor)
void
AbstractIdleService. addListener(Service.Listener listener, java.util.concurrent.Executor executor)
void
AbstractScheduledService. addListener(Service.Listener listener, java.util.concurrent.Executor executor)
void
AbstractService. addListener(Service.Listener listener, java.util.concurrent.Executor executor)
void
Service. addListener(Service.Listener listener, java.util.concurrent.Executor executor)
Registers aService.Listener
to be executed on the given executor.
-