Example usage for Java com.google.common.base Service fields, constructors, methods, implement or subclass
The text is from its open source code.
Class> | getClass() Returns the runtime class of this Object . |
boolean | isRunning() Returns true if this service is State#RUNNING running . |
Future | start() If the service state is State#NEW , this initiates service startup and returns immediately. |
State | state() Returns the lifecycle state of the service. |
Future | stop() If the service is State#STARTING or State#RUNNING , this initiates service shutdown and returns immediately. |