File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 605605 <method >com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStubSettings getInstanceAdminStubSettings()</method >
606606 </difference >
607607
608+ <!-- (Modify return type of maxCommitDelay. Feature not announced) -->
609+ <difference >
610+ <differenceType >7006</differenceType >
611+ <className >com/google/cloud/spanner/Options</className >
612+ <method >com.google.cloud.spanner.Options$ReadQueryUpdateTransactionOption maxCommitDelay(java.time.Duration)</method >
613+ <to >com.google.cloud.spanner.Options$TransactionOption</to >
614+ </difference >
615+
608616 <difference >
609617 <differenceType >7005</differenceType >
610618 <className >com/google/cloud/spanner/PartitionedDmlTransaction</className >
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public static ReadQueryUpdateTransactionOption priority(RpcPriority priority) {
141141 return new PriorityOption (priority );
142142 }
143143
144- public static ReadQueryUpdateTransactionOption maxCommitDelay (Duration maxCommitDelay ) {
144+ public static TransactionOption maxCommitDelay (Duration maxCommitDelay ) {
145145 Preconditions .checkArgument (!maxCommitDelay .isNegative (), "maxCommitDelay should be positive" );
146146 return new MaxCommitDelayOption (maxCommitDelay );
147147 }
@@ -258,8 +258,7 @@ void appendToOptions(Options options) {
258258 static final CommitStatsOption COMMIT_STATS_OPTION = new CommitStatsOption ();
259259
260260 /** Option to request {@link MaxCommitDelayOption} for read/write transactions. */
261- static final class MaxCommitDelayOption extends InternalOption
262- implements ReadQueryUpdateTransactionOption {
261+ static final class MaxCommitDelayOption extends InternalOption implements TransactionOption {
263262 final Duration maxCommitDelay ;
264263
265264 MaxCommitDelayOption (Duration maxCommitDelay ) {
You can’t perform that action at this time.
0 commit comments