public static class CircuitBreakers.Builder extends Object
Modifier and Type | Method and Description |
---|---|
CircuitBreakers |
build() |
CircuitBreakers.Builder |
clone() |
Integer |
getMaxConnections()
The maximum number of connections to the backend cluster.
|
Integer |
getMaxPendingRequests()
The maximum number of pending requests allowed to the backend cluster.
|
Integer |
getMaxRequests()
The maximum number of parallel requests that allowed to the backend cluster.
|
Integer |
getMaxRequestsPerConnection()
Maximum requests for a single backend connection.
|
Integer |
getMaxRetries()
The maximum number of parallel retries allowed to the backend cluster.
|
CircuitBreakers.Builder |
mergeFrom(CircuitBreakers other) |
CircuitBreakers.Builder |
setMaxConnections(Integer maxConnections)
The maximum number of connections to the backend cluster.
|
CircuitBreakers.Builder |
setMaxPendingRequests(Integer maxPendingRequests)
The maximum number of pending requests allowed to the backend cluster.
|
CircuitBreakers.Builder |
setMaxRequests(Integer maxRequests)
The maximum number of parallel requests that allowed to the backend cluster.
|
CircuitBreakers.Builder |
setMaxRequestsPerConnection(Integer maxRequestsPerConnection)
Maximum requests for a single backend connection.
|
CircuitBreakers.Builder |
setMaxRetries(Integer maxRetries)
The maximum number of parallel retries allowed to the backend cluster.
|
public CircuitBreakers.Builder mergeFrom(CircuitBreakers other)
public Integer getMaxConnections()
public CircuitBreakers.Builder setMaxConnections(Integer maxConnections)
public Integer getMaxPendingRequests()
public CircuitBreakers.Builder setMaxPendingRequests(Integer maxPendingRequests)
public Integer getMaxRequests()
public CircuitBreakers.Builder setMaxRequests(Integer maxRequests)
public Integer getMaxRequestsPerConnection()
public CircuitBreakers.Builder setMaxRequestsPerConnection(Integer maxRequestsPerConnection)
public Integer getMaxRetries()
public CircuitBreakers.Builder setMaxRetries(Integer maxRetries)
public CircuitBreakers build()
public CircuitBreakers.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.