Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for traffic-resilience-http documentation #3098

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/generation/site-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ content:
start_path: servicetalk-client-api/docs
- url: ../../
branches: main
tags: [0.42.50]
tags: []
start_path: servicetalk-traffic-resilience-http/docs
asciidoc:
attributes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import io.servicetalk.capacity.limiter.api.CapacityLimiter;
import io.servicetalk.capacity.limiter.api.CapacityLimiters;

public class GradientExample {
public final class GradientExample {

public static void main(String[] args) {
// Initializing a Gradient limiter with configuration profile that favors lower latency.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import static io.servicetalk.capacity.limiter.api.CapacityLimiters.dynamicGradientOptimizeForThroughput;

public class GradientObservabilityExample {
public final class GradientObservabilityExample {

@SuppressWarnings({"UseOfSystemOutOrSystemErr", "PMD.SystemPrintln"})
public static void main(String[] args) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import io.servicetalk.http.netty.HttpClients;
import io.servicetalk.traffic.resilience.http.TrafficResilienceHttpClientFilter;

public class TrafficResilienceClientBreakersExample {
public final class TrafficResilienceClientBreakersExample {
public static void main(String[] args) throws Exception {
final TrafficResilienceHttpClientFilter resilienceFilter =
new TrafficResilienceHttpClientFilter.Builder(() -> CapacityLimiters.dynamicGradient().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import static io.servicetalk.http.api.HttpResponseStatus.SERVICE_UNAVAILABLE;
import static io.servicetalk.http.api.HttpResponseStatus.TOO_MANY_REQUESTS;

public class TrafficResilienceClientPeerRejectionsExample {
public final class TrafficResilienceClientPeerRejectionsExample {
public static void main(String[] args) {
final TrafficResilienceHttpClientFilter resilienceFilter =
new TrafficResilienceHttpClientFilter.Builder(() -> CapacityLimiters.dynamicGradient().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import static io.servicetalk.http.api.HttpResponseStatus.SERVICE_UNAVAILABLE;
import static io.servicetalk.http.api.HttpResponseStatus.TOO_MANY_REQUESTS;

public class TrafficResilienceClientPeerRejectionsPassthroughExample {
public final class TrafficResilienceClientPeerRejectionsPassthroughExample {
public static void main(String[] args) {
final TrafficResilienceHttpClientFilter resilienceFilter =
new TrafficResilienceHttpClientFilter.Builder(() -> CapacityLimiters.dynamicGradient().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import static java.time.Duration.ofMillis;
import static java.time.Duration.ofSeconds;

public class TrafficResilienceClientPeerRejectionsRetryExample {
public final class TrafficResilienceClientPeerRejectionsRetryExample {
public static void main(String[] args) {
final TrafficResilienceHttpClientFilter resilienceFilter =
new TrafficResilienceHttpClientFilter.Builder(() -> CapacityLimiters.dynamicGradient().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.servicetalk.http.netty.HttpServers;
import io.servicetalk.traffic.resilience.http.TrafficResilienceHttpServiceFilter;

public class TrafficResilienceServerClassificationExample {
public final class TrafficResilienceServerClassificationExample {

public static void main(String[] args) throws Exception {
final TrafficResilienceHttpServiceFilter resilienceFilter =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.servicetalk.http.netty.HttpServers;
import io.servicetalk.traffic.resilience.http.TrafficResilienceHttpServiceFilter;

public class TrafficResilienceServerExample {
public final class TrafficResilienceServerExample {

public static void main(String[] args) throws Exception {
final TrafficResilienceHttpServiceFilter resilienceFilter =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import static io.servicetalk.http.api.HttpRequestMethod.POST;

public class TrafficResilienceServerPartitionExample {
public final class TrafficResilienceServerPartitionExample {

public static void main(String[] args) throws Exception {
final TrafficResilienceHttpServiceFilter resilienceFilter =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import static io.servicetalk.buffer.api.CharSequences.contentEqualsIgnoreCase;
import static java.util.Arrays.asList;

public class TrafficResilienceServerQuotasExample {
public final class TrafficResilienceServerQuotasExample {
static final CharSequence CUSTOMER = "x-customer";
static final CharSequence CUSTOMER_X = "X";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import io.servicetalk.traffic.resilience.http.ServiceRejectionPolicy;
import io.servicetalk.traffic.resilience.http.TrafficResilienceHttpServiceFilter;

public class TrafficResilienceServerStopAcceptingExample {
public final class TrafficResilienceServerStopAcceptingExample {

public static void main(String[] args) throws Exception {
final ServiceRejectionPolicy rejectionPolicy = new ServiceRejectionPolicy.Builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import java.util.concurrent.RejectedExecutionException;

public class TrafficResilienceServerTerminalsExample {
public final class TrafficResilienceServerTerminalsExample {

public static void main(String[] args) throws Exception {
final TrafficResilienceHttpServiceFilter resilienceFilter =
Expand Down
2 changes: 1 addition & 1 deletion servicetalk-traffic-resilience-http/docs/antora.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright © 2019 Apple Inc. and the ServiceTalk project authors
# Copyright © 2024 Apple Inc. and the ServiceTalk project authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading