Class ServiceManager.NoOpService

java.lang.Object
com.google.common.util.concurrent.AbstractService
com.google.common.util.concurrent.ServiceManager.NoOpService
All Implemented Interfaces:
Service
Enclosing class:
ServiceManager

private static final class ServiceManager.NoOpService extends AbstractService
A Service instance that does nothing. This is only useful as a placeholder to ensure that the ServiceManager functions properly even when it is managing no services.

The use of this class is considered an implementation detail of ServiceManager and as such it is excluded from ServiceManager.servicesByState(), ServiceManager.startupTimes(), AbstractService.toString() and all logging statements.