public interface Service
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CONCURRENCY_LEVEL |
static long |
MAX_TIMEOUT_MILLIS |
| Modifier and Type | Method and Description |
|---|---|
ActionMetrics |
getActionMetrics()
Returns the
ActionMetrics for this service. |
CircuitBreaker |
getCircuitBreaker()
Returns the
CircuitBreaker for this service. |
void |
shutdown()
Attempts to shutdown the service.
|
static final long MAX_TIMEOUT_MILLIS
static final int MAX_CONCURRENCY_LEVEL
ActionMetrics getActionMetrics()
ActionMetrics for this service.CircuitBreaker getCircuitBreaker()
CircuitBreaker for this service.void shutdown()
RejectedActionException. Implementations may differ on if pending
or executing actions are cancelled.Copyright © 2014 Tim Brooks. All Rights Reserved.