Generated by
JDiff

Interface com.google.common.util.concurrent.Service

Added Methods
void awaitRunning(long, TimeUnit) Waits for the Service to reach the State#RUNNING running state for no more than the given time.
void awaitRunning() Waits for the Service to reach the State#RUNNING running state.
void awaitTerminated(long, TimeUnit) Waits for the Service to reach a terminal state (either terminated or failed) for no more than the given time.
void awaitTerminated() Waits for the Service to reach the State#TERMINATED terminated state.
Service startAsync() If the service state is State.NEW, this initiates service startup and returns immediately.
Service stopAsync() If the service is State#STARTING starting or State#RUNNING running, this initiates service shutdown and returns immediately.
 

Changed Methods
ListenableFuture<State> start() Now deprecated.
Use {@link #startAsync()} instead of this method to start the {@link Service} or use a {@link Listener} to asynchronously wait for service startup.
State startAndWait() Now deprecated.
Use {@link #startAsync()} and {@link #awaitRunning} instead of this method.
ListenableFuture<State> stop() Now deprecated.
Use {@link #stopAsync} instead of this method to initiate service shutdown or use a service {@link Listener} to asynchronously wait for service shutdown.
State stopAndWait() Now deprecated.
Use {@link #stopAsync} and {@link #awaitTerminated} instead of this method.