Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
Service.State |
AbstractIdleService.startAndWait()
Deprecated.
|
Service.State |
Service.startAndWait()
Deprecated.
Use
Service.startAsync() and Service.awaitRunning() instead of this method. |
Service.State |
AbstractService.startAndWait()
Deprecated.
|
Service.State |
AbstractExecutionThreadService.startAndWait()
Deprecated.
|
Service.State |
AbstractScheduledService.startAndWait()
Deprecated.
|
Service.State |
AbstractIdleService.state() |
Service.State |
Service.state()
Returns the lifecycle state of the service.
|
Service.State |
AbstractService.state() |
Service.State |
AbstractExecutionThreadService.state() |
Service.State |
AbstractScheduledService.state() |
Service.State |
AbstractIdleService.stopAndWait()
Deprecated.
|
Service.State |
Service.stopAndWait()
Deprecated.
Use
Service.stopAsync() and Service.awaitTerminated() instead of this method. |
Service.State |
AbstractService.stopAndWait()
Deprecated.
|
Service.State |
AbstractExecutionThreadService.stopAndWait()
Deprecated.
|
Service.State |
AbstractScheduledService.stopAndWait()
Deprecated.
|
static Service.State |
Service.State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Service.State[] |
Service.State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMultimap<Service.State,Service> |
ServiceManager.servicesByState()
Provides a snapshot of the current state of all the services under management.
|
ListenableFuture<Service.State> |
AbstractIdleService.start()
Deprecated.
|
ListenableFuture<Service.State> |
Service.start()
Deprecated.
Use
Service.startAsync() instead of this method to start the Service or
use a Service.Listener to asynchronously wait for service startup. |
ListenableFuture<Service.State> |
AbstractService.start()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractExecutionThreadService.start()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractScheduledService.start()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractIdleService.stop()
Deprecated.
|
ListenableFuture<Service.State> |
Service.stop()
Deprecated.
Use
Service.stopAsync() instead of this method to initiate service shutdown or use a
service Service.Listener to asynchronously wait for service shutdown. |
ListenableFuture<Service.State> |
AbstractService.stop()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractExecutionThreadService.stop()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractScheduledService.stop()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Service.Listener.failed(Service.State from,
Throwable failure)
Called when the service transitions to the FAILED state.
|
void |
Service.Listener.stopping(Service.State from)
Called when the service transitions to the STOPPING state.
|
void |
Service.Listener.terminated(Service.State from)
Called when the service transitions to the TERMINATED state.
|
Copyright © 2010-2014. All Rights Reserved.