@@ -77,12 +77,6 @@ public class SessionPoolOptions {
77
77
78
78
private final boolean useMultiplexedSession ;
79
79
80
- /**
81
- * Controls whether multiplexed session is enabled for blind write or not. This is only used for
82
- * systest soak. TODO: Remove when multiplexed session for blind write is released.
83
- */
84
- private final boolean useMultiplexedSessionBlindWrite ;
85
-
86
80
private final boolean useMultiplexedSessionForRW ;
87
81
88
82
private final boolean useMultiplexedSessionForPartitionedOps ;
@@ -122,7 +116,6 @@ private SessionPoolOptions(Builder builder) {
122
116
(useMultiplexedSessionFromEnvVariable != null )
123
117
? useMultiplexedSessionFromEnvVariable
124
118
: builder .useMultiplexedSession ;
125
- this .useMultiplexedSessionBlindWrite = builder .useMultiplexedSessionBlindWrite ;
126
119
// useMultiplexedSessionForRW priority => Environment var > private setter > client default
127
120
Boolean useMultiplexedSessionForRWFromEnvVariable =
128
121
getUseMultiplexedSessionForRWFromEnvVariable ();
@@ -205,7 +198,6 @@ public int hashCode() {
205
198
this .inactiveTransactionRemovalOptions ,
206
199
this .poolMaintainerClock ,
207
200
this .useMultiplexedSession ,
208
- this .useMultiplexedSessionBlindWrite ,
209
201
this .useMultiplexedSessionForRW ,
210
202
this .multiplexedSessionMaintenanceDuration );
211
203
}
@@ -349,7 +341,7 @@ public boolean getUseMultiplexedSession() {
349
341
@ VisibleForTesting
350
342
@ InternalApi
351
343
protected boolean getUseMultiplexedSessionBlindWrite () {
352
- return getUseMultiplexedSession () && useMultiplexedSessionBlindWrite ;
344
+ return getUseMultiplexedSession ();
353
345
}
354
346
355
347
@ VisibleForTesting
@@ -601,9 +593,6 @@ public static class Builder {
601
593
// Set useMultiplexedSession to true to make multiplexed session the default.
602
594
private boolean useMultiplexedSession = false ;
603
595
604
- // TODO: Remove when multiplexed session for blind write is released.
605
- private boolean useMultiplexedSessionBlindWrite = false ;
606
-
607
596
// This field controls the default behavior of session management for RW operations in Java
608
597
// client.
609
598
// Set useMultiplexedSessionForRW to true to make multiplexed session for RW operations the
@@ -657,7 +646,6 @@ private Builder(SessionPoolOptions options) {
657
646
this .randomizePositionQPSThreshold = options .randomizePositionQPSThreshold ;
658
647
this .inactiveTransactionRemovalOptions = options .inactiveTransactionRemovalOptions ;
659
648
this .useMultiplexedSession = options .useMultiplexedSession ;
660
- this .useMultiplexedSessionBlindWrite = options .useMultiplexedSessionBlindWrite ;
661
649
this .useMultiplexedSessionForRW = options .useMultiplexedSessionForRW ;
662
650
this .useMultiplexedSessionPartitionedOps = options .useMultiplexedSessionForPartitionedOps ;
663
651
this .multiplexedSessionMaintenanceDuration = options .multiplexedSessionMaintenanceDuration ;
@@ -857,17 +845,6 @@ Builder setUseMultiplexedSession(boolean useMultiplexedSession) {
857
845
return this ;
858
846
}
859
847
860
- /**
861
- * This method enables multiplexed sessions for blind writes. This method will be removed in the
862
- * future when multiplexed sessions has been made the default for all operations.
863
- */
864
- @ InternalApi
865
- @ VisibleForTesting
866
- Builder setUseMultiplexedSessionBlindWrite (boolean useMultiplexedSessionBlindWrite ) {
867
- this .useMultiplexedSessionBlindWrite = useMultiplexedSessionBlindWrite ;
868
- return this ;
869
- }
870
-
871
848
/**
872
849
* Sets whether the client should use multiplexed session for R/W operations or not. This method
873
850
* is intentionally package-private and intended for internal use.
0 commit comments