Skip to content

Commit

Permalink
static
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 11, 2024
1 parent f759525 commit 1e112b0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* APIs (or a version of them) may be promoted to the public stable API in the future, but no
* guarantees are made.
*/
public class Experimental {
public final class Experimental {

@Nullable
private static volatile BiConsumer<SpringWebfluxClientTelemetryBuilder, Boolean>
Expand All @@ -25,14 +25,14 @@ public class Experimental {
private static volatile BiConsumer<SpringWebfluxServerTelemetryBuilder, Boolean>
setEmitExperimentalServerTelemetry;

public void setEmitExperimentalTelemetry(
public static void setEmitExperimentalTelemetry(
SpringWebfluxClientTelemetryBuilder builder, boolean emitExperimentalTelemetry) {
if (setEmitExperimentalClientTelemetry != null) {
setEmitExperimentalClientTelemetry.accept(builder, emitExperimentalTelemetry);
}
}

public void setEmitExperimentalTelemetry(
public static void setEmitExperimentalTelemetry(
SpringWebfluxServerTelemetryBuilder builder, boolean emitExperimentalTelemetry) {
if (setEmitExperimentalServerTelemetry != null) {
setEmitExperimentalServerTelemetry.accept(builder, emitExperimentalTelemetry);
Expand All @@ -48,4 +48,6 @@ public static void setSetEmitExperimentalServerTelemetry(
BiConsumer<SpringWebfluxServerTelemetryBuilder, Boolean> setEmitExperimentalServerTelemetry) {
Experimental.setEmitExperimentalServerTelemetry = setEmitExperimentalServerTelemetry;
}

private Experimental() {}
}

0 comments on commit 1e112b0

Please sign in to comment.