Skip navigation links
B C D F I O P R S T 

B

breaker() - Method in class StateContext
Returns the CircuitBreaker in-use for the currently evaluated request.
build() - Method in class ServiceRejectionPolicy.Builder
Return a custom ServiceRejectionPolicy based on the options of this builder.
build() - Method in class TrafficResilienceHttpClientFilter.Builder
Invoke to build an instance of TrafficResilienceHttpClientFilter filter to be used inside the HttpClientBuilder.
build() - Method in class TrafficResilienceHttpServiceFilter.Builder
Invoke to build an instance of TrafficResilienceHttpServiceFilter filter to be used inside the HttpServerBuilder.
Builder() - Constructor for class ServiceRejectionPolicy.Builder
 
Builder(Supplier<CapacityLimiter>) - Constructor for class TrafficResilienceHttpClientFilter.Builder
A TrafficResilienceHttpClientFilter with no partitioning schemes.
Builder(Supplier<Function<HttpRequestMetaData, CapacityLimiter>>, boolean) - Constructor for class TrafficResilienceHttpClientFilter.Builder
A TrafficResilienceHttpClientFilter can support request partitioning schemes.
Builder(Supplier<CapacityLimiter>) - Constructor for class TrafficResilienceHttpServiceFilter.Builder
A TrafficResilienceHttpServiceFilter with no partitioning schemes.
Builder(Supplier<Function<HttpRequestMetaData, CapacityLimiter>>, boolean) - Constructor for class TrafficResilienceHttpServiceFilter.Builder
A TrafficResilienceHttpServiceFilter can support request partitioning schemes.

C

capacityPartitions(Supplier<Function<HttpRequestMetaData, CapacityLimiter>>, boolean) - Method in class TrafficResilienceHttpClientFilter.Builder
Define CapacityLimiter partitions.
capacityPartitions(Supplier<Function<HttpRequestMetaData, CapacityLimiter>>, boolean) - Method in class TrafficResilienceHttpServiceFilter.Builder
Define CapacityLimiter partitions.
circuitBreakerPartitions(Supplier<Function<HttpRequestMetaData, CircuitBreaker>>) - Method in class TrafficResilienceHttpClientFilter.Builder
Define CircuitBreaker to manage local or remote errors.
circuitBreakerPartitions(Supplier<Function<HttpRequestMetaData, CircuitBreaker>>) - Method in class TrafficResilienceHttpServiceFilter.Builder
Define CircuitBreaker partitions to manage local errors.
classifier(Supplier<Function<HttpRequestMetaData, Classification>>) - Method in class TrafficResilienceHttpClientFilter.Builder
Classification in the context of capacity management allows for hints to the relevant CapacityLimiter to be influenced on the decision-making process by the class of the request.
classifier(Supplier<Function<HttpRequestMetaData, Classification>>) - Method in class TrafficResilienceHttpServiceFilter.Builder
Classification in the context of capacity management allows for hints to the relevant CapacityLimiter to be influenced on the decision making process by the class of the request.
ClientPeerRejectionPolicy - Class in io.servicetalk.traffic.resilience.http
Policy for peer capacity rejections that allows customization of behavior (retries or pass-through).
create(FilterableStreamingHttpClient) - Method in class TrafficResilienceHttpClientFilter
 
create(StreamingHttpService) - Method in class TrafficResilienceHttpServiceFilter
 

D

DEFAULT_BREAKER_REJECTION_PREDICATE - Static variable in class TrafficResilienceHttpClientFilter
Default rejection observer for dropped requests from an external sourced due to service unavailability.
DEFAULT_CAPACITY_REJECTION_PREDICATE - Static variable in class ClientPeerRejectionPolicy
Default rejection observer for dropped requests from an external sourced.
DEFAULT_PEER_REJECTION_POLICY - Static variable in class ClientPeerRejectionPolicy
Default rejection policy for peer responses.
DEFAULT_REJECTION_POLICY - Static variable in class ServiceRejectionPolicy
Default response rejection policy.
delay() - Method in exception DelayedRetryRequestDroppedException
 
DelayedRetryRequestDroppedException - Exception in io.servicetalk.traffic.resilience.http
A RequestDroppedException to indicate that a request was dropped by a server due to capacity constraints and requires a client to delay its retry.
DelayedRetryRequestDroppedException(Duration) - Constructor for exception DelayedRetryRequestDroppedException
Creates a new instance.
DelayedRetryRequestDroppedException(Duration, String) - Constructor for exception DelayedRetryRequestDroppedException
Creates a new instance.
DelayedRetryRequestDroppedException(Duration, String, Throwable) - Constructor for exception DelayedRetryRequestDroppedException
Creates a new instance.
DelayedRetryRequestDroppedException(Duration, Throwable) - Constructor for exception DelayedRetryRequestDroppedException
Creates a new instance.
DelayedRetryRequestDroppedException(Duration, String, Throwable, boolean, boolean) - Constructor for exception DelayedRetryRequestDroppedException
Creates a new instance.
dontForceOpenCircuitOnPeerCircuitRejections() - Method in class TrafficResilienceHttpClientFilter.Builder
When a peer rejects a request due to an open-circuit (see.
dryRun(boolean) - Method in class TrafficResilienceHttpClientFilter.Builder
Use the resilience filter in dry-run mode.
dryRun(boolean) - Method in class TrafficResilienceHttpServiceFilter.Builder
Use the resilience filter in dry-run mode.

F

forceOpenCircuitOnPeerCircuitRejections(Supplier<Function<HttpResponseMetaData, Duration>>, Executor) - Method in class TrafficResilienceHttpClientFilter.Builder
When a peer rejects a request due to an open-circuit (see.

I

io.servicetalk.traffic.resilience.http - package io.servicetalk.traffic.resilience.http
 

O

observer(TrafficResiliencyObserver) - Method in class TrafficResilienceHttpClientFilter.Builder
Provide an observer to track interactions of the filter and requests.
observer(TrafficResiliencyObserver) - Method in class TrafficResilienceHttpServiceFilter.Builder
Provide an observer to track interactions of the filter and requests.
ofPassthrough(Predicate<HttpResponseMetaData>) - Static method in class ClientPeerRejectionPolicy
Evaluate responses with the given Predicate as capacity related rejections, that will affect the CapacityLimiter in use, but allow the original response from the upstream to pass-through this filter.
ofRejection(Predicate<HttpResponseMetaData>) - Static method in class ClientPeerRejectionPolicy
Evaluate responses with the given Predicate as capacity related rejections, that will affect the CapacityLimiter in use, and translate that to en exception.
ofRejectionWithRetries(Predicate<HttpResponseMetaData>, Function<HttpResponseMetaData, Duration>) - Static method in class ClientPeerRejectionPolicy
Evaluate responses with the given Predicate as capacity related rejections, that will affect the CapacityLimiter in use, and translate that to an exception that contains "delay" information useful when retrying it through a retrying filter.
onAllowedThrough(StreamingHttpRequest, CapacityLimiter.LimiterState) - Method in interface TrafficResiliencyObserver
Called when a request was let through.
onCancel() - Method in interface TrafficResiliencyObserver.TicketObserver
Called when the request flow was cancelled.
onCancelTicketTerminal(Consumer<CapacityLimiter.Ticket>) - Method in class TrafficResilienceHttpClientFilter.Builder
Ticket terminal callback override upon cancellation of the request operation.
onCancelTicketTerminal(Consumer<CapacityLimiter.Ticket>) - Method in class TrafficResilienceHttpServiceFilter.Builder
Ticket terminal callback override upon cancellation of the operation.
onComplete() - Method in interface TrafficResiliencyObserver.TicketObserver
Called when the request was completed successfully.
onError(Throwable) - Method in interface TrafficResiliencyObserver.TicketObserver
Called when the request flow terminated erroneously.
onErrorTicketTerminal(BiConsumer<CapacityLimiter.Ticket, Throwable>) - Method in class TrafficResilienceHttpClientFilter.Builder
Ticket terminal callback override upon erroneous completion of the request operation.
onErrorTicketTerminal(BiConsumer<CapacityLimiter.Ticket, Throwable>) - Method in class TrafficResilienceHttpServiceFilter.Builder
Ticket terminal callback override upon erroneous completion of the operation.
onLimitResponseBuilder(BiFunction<HttpRequestMetaData, StreamingHttpResponseFactory, Single<StreamingHttpResponse>>) - Method in class ServiceRejectionPolicy.Builder
Determines the StreamingHttpResponse when a capacity limit is met.
onLimitRetryAfter(Consumer<HttpResponseMetaData>) - Method in class ServiceRejectionPolicy.Builder
Determines a retry-after header in the StreamingHttpResponse when a capacity limit is met.
onLimitStopAcceptingConnections(boolean) - Method in class ServiceRejectionPolicy.Builder
When a certain CapacityLimiter rejects a request due to the active limit, (e.g., no CapacityLimiter.Ticket is returned) influence the server to also stop accepting new connections until the capacity is under healthy conditions again.
onOpenCircuitResponseBuilder(BiFunction<HttpRequestMetaData, StreamingHttpResponseFactory, Single<StreamingHttpResponse>>) - Method in class ServiceRejectionPolicy.Builder
Determines the StreamingHttpResponse when a circuit-breaker limit is met.
onOpenCircuitRetryAfter(BiConsumer<HttpResponseMetaData, StateContext>) - Method in class ServiceRejectionPolicy.Builder
Determines a retry-after header in the StreamingHttpResponse when a capacity limit is met.
onRejectedLimit(StreamingHttpRequest, String, ContextMap, Classification) - Method in interface TrafficResiliencyObserver
Called when a request was "hard-rejected" due to a CapacityLimiter reaching its limit.
onRejectedOpenCircuit(StreamingHttpRequest, String, ContextMap, Classification) - Method in interface TrafficResiliencyObserver
Called when a request was "hard-rejected" due to a CircuitBreaker open state.
onRejectedUnmatchedPartition(StreamingHttpRequest) - Method in interface TrafficResiliencyObserver
Called when a request was "soft-rejected" due to unmatched partition.

P

peerUnavailableRejectionPredicate(Predicate<HttpResponseMetaData>) - Method in class TrafficResilienceHttpClientFilter.Builder
Peers can reject requests due to service unavailability.

R

rejectionPolicy(ClientPeerRejectionPolicy) - Method in class TrafficResilienceHttpClientFilter.Builder
Peers can reject and exception due to capacity reasons based on their own principals and implementation details.
rejectionPolicy(ServiceRejectionPolicy) - Method in class TrafficResilienceHttpServiceFilter.Builder
Defines the ServiceRejectionPolicy which in turn defines the behavior of the service when a rejection occurs due to capacity or breaker.
RETRY_AFTER_MILLIS - Static variable in class ServiceRejectionPolicy
Custom retry-after header that supports milliseconds resolution, rather than seconds.
RetryableRequestDroppedException - Exception in io.servicetalk.traffic.resilience.http
A retryable RequestDroppedException to indicate that a request was dropped by a client/server due to capacity constraints.
RetryableRequestDroppedException() - Constructor for exception RetryableRequestDroppedException
Creates a new instance.
RetryableRequestDroppedException(String) - Constructor for exception RetryableRequestDroppedException
Creates a new instance.
RetryableRequestDroppedException(String, Throwable) - Constructor for exception RetryableRequestDroppedException
Creates a new instance.
RetryableRequestDroppedException(Throwable) - Constructor for exception RetryableRequestDroppedException
Creates a new instance.
RetryableRequestDroppedException(String, Throwable, boolean, boolean) - Constructor for exception RetryableRequestDroppedException
Creates a new instance.
retryAfterHint(int) - Static method in class ServiceRejectionPolicy
A hard-coded delay in seconds to be supplied as a Retry-After HTTP header in a HttpResponseMetaData.
retryAfterHintOfBreaker() - Static method in class ServiceRejectionPolicy
A delay in seconds to be supplied as a Retry-After HTTP header in a HttpResponseMetaData based on the CircuitBreaker that matched the HttpRequestMetaData.
retryAfterMillisHint(Duration) - Static method in class ServiceRejectionPolicy
A hard-coded delay in milliseconds to be supplied as a Retry-After-Millis HTTP header in a HttpResponseMetaData.

S

ServiceRejectionPolicy - Class in io.servicetalk.traffic.resilience.http
Rejection Policy to rule the behavior of service rejections due to capacity or open circuit.
ServiceRejectionPolicy.Builder - Class in io.servicetalk.traffic.resilience.http
A ServiceRejectionPolicy builder to support a custom policy.
serviceUnavailable() - Static method in class ServiceRejectionPolicy
Pre-defined response that signals HttpResponseStatus.SERVICE_UNAVAILABLE to the peer.
StateContext - Class in io.servicetalk.traffic.resilience.http
State information of the traffic-resilience service filter.

T

throwable() - Method in exception DelayedRetryRequestDroppedException
 
tooManyRequests() - Static method in class ServiceRejectionPolicy
Pre-defined response that signals HttpResponseStatus.TOO_MANY_REQUESTS to the peer.
TrafficResilienceHttpClientFilter - Class in io.servicetalk.traffic.resilience.http
A StreamingHttpClientFilterFactory to enforce capacity and circuit-breaking control for a client.
TrafficResilienceHttpClientFilter.Builder - Class in io.servicetalk.traffic.resilience.http
TrafficResilienceHttpServiceFilter - Class in io.servicetalk.traffic.resilience.http
A StreamingHttpServiceFilterFactory to enforce capacity control for a server.
TrafficResilienceHttpServiceFilter.Builder - Class in io.servicetalk.traffic.resilience.http
TrafficResiliencyObserver - Interface in io.servicetalk.traffic.resilience.http
TrafficResiliencyObserver.TicketObserver - Interface in io.servicetalk.traffic.resilience.http
Transactional observer for the requests that were let-through.
B C D F I O P R S T 
Skip navigation links