@@ -165,13 +165,13 @@ public final class Config implements Serializable {
165
165
166
166
/**
167
167
* Defines whether the driver should try using TCP Fast Open if the runtime supports it. This option is ignored
168
- * when the conditions described in {@link ConfigBuilder#withTcpFastOpenEnabled (boolean)} are not met.
168
+ * when the conditions described in {@link ConfigBuilder#withTryTcpFastOpen (boolean)} are not met.
169
169
* <p>
170
170
* <b>This option is experimental.</b>
171
171
* @since 6.0.0
172
172
*/
173
173
@ Experimental
174
- private final boolean tcpFastOpenEnabled ;
174
+ private final boolean tryTcpFastOpen ;
175
175
176
176
private Config (ConfigBuilder builder ) {
177
177
this .logging = builder .logging ;
@@ -195,7 +195,7 @@ private Config(ConfigBuilder builder) {
195
195
this .eventLoopThreads = builder .eventLoopThreads ;
196
196
this .telemetryDisabled = builder .telemetryDisabled ;
197
197
this .observationProvider = builder .observationProvider ;
198
- this .tcpFastOpenEnabled = builder .tcpFastOpenEnabled ;
198
+ this .tryTcpFastOpen = builder .tryTcpFastOpen ;
199
199
}
200
200
201
201
/**
@@ -418,7 +418,7 @@ public Optional<ObservationProvider> observationProvider() {
418
418
419
419
/**
420
420
* Returns whether the driver should try using TCP Fast Open if the runtime supports it. This option is ignored
421
- * when the conditions described in {@link ConfigBuilder#withTcpFastOpenEnabled (boolean)} are not met.
421
+ * when the conditions described in {@link ConfigBuilder#withTryTcpFastOpen (boolean)} are not met.
422
422
* <p>
423
423
* <b>This option is experimental.</b>
424
424
* <p>
@@ -428,8 +428,8 @@ public Optional<ObservationProvider> observationProvider() {
428
428
* @since 6.0.0
429
429
*/
430
430
@ Experimental
431
- public boolean isTcpFastOpenEnabled () {
432
- return tcpFastOpenEnabled ;
431
+ public boolean isTryTcpFastOpen () {
432
+ return tryTcpFastOpen ;
433
433
}
434
434
435
435
/**
@@ -454,7 +454,7 @@ public static final class ConfigBuilder {
454
454
private long fetchSize = 1000 ;
455
455
private int eventLoopThreads = 0 ;
456
456
private ObservationProvider observationProvider ;
457
- private boolean tcpFastOpenEnabled ;
457
+ private boolean tryTcpFastOpen ;
458
458
459
459
@ SuppressWarnings ("deprecation" )
460
460
private NotificationConfig notificationConfig = NotificationConfig .defaultConfig ();
@@ -950,8 +950,8 @@ public ConfigBuilder withTelemetryDisabled(boolean telemetryDisabled) {
950
950
* @since 6.0.0
951
951
*/
952
952
@ Experimental
953
- public ConfigBuilder withTcpFastOpenEnabled (boolean enabled ) {
954
- this .tcpFastOpenEnabled = enabled ;
953
+ public ConfigBuilder withTryTcpFastOpen (boolean enabled ) {
954
+ this .tryTcpFastOpen = enabled ;
955
955
return this ;
956
956
}
957
957
0 commit comments