Java com.google.common.util.concurrent ServiceManager fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.util.concurrent ServiceManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.util.concurrent ServiceManager.

The text is from its open source code.

Constructor

ServiceManager(Iterable services)
Constructs a new instance for managing the given services.

Method

voidaddListener(Listener listener)
Registers a Listener to be run when this ServiceManager changes state.
voidawaitHealthy()
Waits for the ServiceManager to become #isHealthy() healthy .
voidawaitStopped(long timeout, TimeUnit unit)
Waits for the all the services to reach a terminal state for no more than the given time.
ImmutableMultimapservicesByState()
Provides a snapshot of the current state of all the services under management.
ServiceManagerstartAsync()
Initiates service Service#startAsync startup on all the services being managed.
ImmutableMapstartupTimes()
Returns the service load times.
ServiceManagerstopAsync()
Initiates service Service#stopAsync shutdown if necessary on all the services being managed.