Skip to content

Commit

Permalink
Deprecation of old config options now replaced by SocketOptions. We s…
Browse files Browse the repository at this point in the history
…hall remove these in 5.0. (#9709)
  • Loading branch information
spericas authored Jan 30, 2025
1 parent cffb8e2 commit ec6de3a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////

Copyright (c) 2020, 2023 Oracle and/or its affiliates.
Copyright (c) 2020, 2025 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,6 @@ Still, there might be cases where you wish to change configuration options from
For details on the following options please see:
* xref:../../se/webserver.adoc#_configuration_options[WebServer Configuration]
* xref:../../config/io_helidon_webserver_ConnectionConfig.adoc[WebServer Connection Configuration]
* xref:../../config/io_helidon_common_socket_SocketOptions.adoc[WebServer Socket Configuration]
== Summary of Tuning Options
Expand All @@ -51,7 +50,6 @@ server:
# Depends on the workload and kernel version
backlog: NNNN
receive-buffer-size: NNNNN
write-buffer-size: NNNNN
write-queue-length: NN # 0 means direct write
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Oracle and/or its affiliates.
* Copyright (c) 2023, 2025 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,9 +25,12 @@

/**
* Configuration of a server connection (for each connection created by clients).
*
* @deprecated use {@link io.helidon.common.socket.SocketOptionsBlueprint} instead
*/
@Prototype.Blueprint
@Prototype.Configured
@Deprecated(forRemoval = true, since = "4.2.0")
interface ConnectionConfigBlueprint {
/**
* Default read timeout duration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, 2024 Oracle and/or its affiliates.
* Copyright (c) 2023, 2025 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -151,7 +151,10 @@ interface ListenerConfigBlueprint {
* Listener receive buffer size.
*
* @return buffer size in bytes
* @deprecated use {@link SocketOptions#socketReceiveBufferSize()} instead
* via {@link #connectionOptions()}.
*/
@Deprecated(forRemoval = true, since = "4.2.0")
@Option.Configured
Optional<Integer> receiveBufferSize();

Expand Down Expand Up @@ -201,7 +204,9 @@ interface ListenerConfigBlueprint {
* Configuration of a connection (established from client against our server).
*
* @return connection configuration
* @deprecated use {@link #connectionOptions()} instead
*/
@Deprecated(forRemoval = true, since = "4.2.0")
@Option.Configured
Optional<ConnectionConfig> connectionConfig();

Expand Down

0 comments on commit ec6de3a

Please sign in to comment.