Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 77cded1

Browse files
chore: add key recipe cache for routing (#4294)
* feat: add key recipe cache for routing * chore: generate libraries at Tue Jan 20 09:37:42 UTC 2026 * incorporate changes * fix javadoc * chore: generate libraries at Wed Jan 28 07:48:52 UTC 2026 --------- Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
1 parent 8813c9a commit 77cded1

9 files changed

Lines changed: 6077 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>libraries-bom</artifactId>
22-
<version>26.72.0</version>
22+
<version>26.74.0</version>
2323
<type>pom</type>
2424
<scope>import</scope>
2525
</dependency>
@@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies:
4141
<dependency>
4242
<groupId>com.google.cloud</groupId>
4343
<artifactId>google-cloud-spanner</artifactId>
44-
<version>6.102.1</version>
44+
<version>6.107.0</version>
4545
</dependency>
4646

4747
```

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/ChannelEndpointCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ public interface ChannelEndpointCache {
4343
ChannelEndpoint defaultChannel();
4444

4545
/**
46-
* Returns a cached server for the given address, creating it if needed.
46+
* Returns a cached channel for the given address, creating it if needed.
4747
*
48-
* <p>If a server for this address already exists in the cache, the cached instance is returned.
48+
* <p>If a channel for this address already exists in the cache, the cached instance is returned.
4949
* Otherwise, a new server connection is created and cached.
5050
*
5151
* @param address the server address in "host:port" format
52-
* @return a server instance for the address, never null
52+
* @return a channel instance for the address, never null
5353
* @throws com.google.cloud.spanner.SpannerException if the channel cannot be created
5454
*/
5555
ChannelEndpoint get(String address);
5656

5757
/**
58-
* Evicts a server from the cache and gracefully shuts down its channel.
58+
* Evicts a server connection from the cache and gracefully shuts down its channel.
5959
*
6060
* <p>This method should be called when a server becomes unhealthy or is no longer needed. The
6161
* channel shutdown is graceful: existing RPCs are allowed to complete, but new RPCs will not be

0 commit comments

Comments
 (0)