Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
protected Service.State |
ForwardingService.standardStartAndWait()
Deprecated.
A sensible default implementation of
ForwardingService.startAndWait() , in terms of
ForwardingService.start() . |
protected Service.State |
ForwardingService.standardStopAndWait()
Deprecated.
A sensible default implementation of
ForwardingService.stopAndWait() , in terms of
ForwardingService.stop() . |
Service.State |
Service.startAndWait()
Initiates service startup (if necessary), returning once the service has finished starting.
|
Service.State |
ForwardingService.startAndWait()
Deprecated.
|
Service.State |
AbstractService.startAndWait() |
Service.State |
AbstractScheduledService.startAndWait() |
Service.State |
AbstractIdleService.startAndWait() |
Service.State |
AbstractExecutionThreadService.startAndWait() |
Service.State |
Service.state()
Returns the lifecycle state of the service.
|
Service.State |
ForwardingService.state()
Deprecated.
|
Service.State |
AbstractService.state() |
Service.State |
AbstractScheduledService.state() |
Service.State |
AbstractIdleService.state() |
Service.State |
AbstractExecutionThreadService.state() |
Service.State |
Service.stopAndWait()
Initiates service shutdown (if necessary), returning once the service has finished stopping.
|
Service.State |
ForwardingService.stopAndWait()
Deprecated.
|
Service.State |
AbstractService.stopAndWait() |
Service.State |
AbstractScheduledService.stopAndWait() |
Service.State |
AbstractIdleService.stopAndWait() |
Service.State |
AbstractExecutionThreadService.stopAndWait() |
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> |
Service.start()
If the service state is
NEW , this initiates service startup and returns
immediately. |
ListenableFuture<Service.State> |
ForwardingService.start()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractService.start() |
ListenableFuture<Service.State> |
AbstractScheduledService.start() |
ListenableFuture<Service.State> |
AbstractIdleService.start() |
ListenableFuture<Service.State> |
AbstractExecutionThreadService.start() |
ListenableFuture<Service.State> |
Service.stop()
|
ListenableFuture<Service.State> |
ForwardingService.stop()
Deprecated.
|
ListenableFuture<Service.State> |
AbstractService.stop() |
ListenableFuture<Service.State> |
AbstractScheduledService.stop() |
ListenableFuture<Service.State> |
AbstractIdleService.stop() |
ListenableFuture<Service.State> |
AbstractExecutionThreadService.stop() |
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-2013. All Rights Reserved.