Skip to content

Commit 5d115d4

Browse files
authored
feat: support setting timeout per RPC (#379)
* feat: support setting timeout per RPC The Spanner client allows a user to set custom timeouts while creating a SpannerOptions instance, but these timeouts are static and are applied to all invocations of the RPCs. This change introduces the possibility to set custom timeouts and other call options on a per-RPC basis. Fixes #378 * fix: change grpc deps from test to compile scope * fix: address review comments * fix: resolve review comment
1 parent 08f2167 commit 5d115d4

File tree

6 files changed

+884
-102
lines changed

6 files changed

+884
-102
lines changed

google-cloud-spanner/pom.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,18 @@
203203
<groupId>com.google.api.grpc</groupId>
204204
<artifactId>proto-google-cloud-spanner-admin-database-v1</artifactId>
205205
</dependency>
206+
<dependency>
207+
<groupId>com.google.api.grpc</groupId>
208+
<artifactId>grpc-google-cloud-spanner-admin-instance-v1</artifactId>
209+
</dependency>
210+
<dependency>
211+
<groupId>com.google.api.grpc</groupId>
212+
<artifactId>grpc-google-cloud-spanner-v1</artifactId>
213+
</dependency>
214+
<dependency>
215+
<groupId>com.google.api.grpc</groupId>
216+
<artifactId>grpc-google-cloud-spanner-admin-database-v1</artifactId>
217+
</dependency>
206218
<dependency>
207219
<groupId>com.google.guava</groupId>
208220
<artifactId>guava</artifactId>
@@ -246,21 +258,6 @@
246258
<scope>test</scope>
247259
</dependency>
248260

249-
<dependency>
250-
<groupId>com.google.api.grpc</groupId>
251-
<artifactId>grpc-google-cloud-spanner-v1</artifactId>
252-
<scope>test</scope>
253-
</dependency>
254-
<dependency>
255-
<groupId>com.google.api.grpc</groupId>
256-
<artifactId>grpc-google-cloud-spanner-admin-instance-v1</artifactId>
257-
<scope>test</scope>
258-
</dependency>
259-
<dependency>
260-
<groupId>com.google.api.grpc</groupId>
261-
<artifactId>grpc-google-cloud-spanner-admin-database-v1</artifactId>
262-
<scope>test</scope>
263-
</dependency>
264261
<!-- Need testing utility classes for generated gRPC clients tests -->
265262
<dependency>
266263
<groupId>com.google.api</groupId>

0 commit comments

Comments
 (0)