You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,44 @@ The `cf-java-client` project is a Java language binding for interacting with a C
17
17
## Versions
18
18
The Cloud Foundry Java Client has two active versions. The `5.x` line is compatible with Spring Boot `2.4.x - 2.6.x` just to manage its dependencies, while the `4.x` line uses Spring Boot `2.3.x`.
19
19
20
+
## Deprecations
21
+
22
+
### `DopplerClient.recentLogs()` — Recent Logs via Doppler
23
+
24
+
> [!WARNING]
25
+
> **Deprecated since cf-java-client `5.17.x`**
26
+
>
27
+
> The `DopplerClient.recentLogs()` endpoint (and the related `RecentLogsRequest` / `LogMessage` types from the `org.cloudfoundry.doppler` package) are **deprecated** and will be removed in a future release.
28
+
>
29
+
> This API relies on the [Loggregator][loggregator] Doppler/Traffic Controller endpoint `/apps/{id}/recentlogs`, which was removed in **Loggregator ≥ 107.0**.
30
+
> The affected platform versions are:
31
+
>
32
+
> | Platform | Last version with Doppler recent-logs support |
> **Migration:** Replace any call to `DopplerClient.recentLogs()` with [`LogCacheClient.read()`][log-cache-api] (available via `org.cloudfoundry.logcache.v1.LogCacheClient`).
>**OperationsAPI users:** `Applications.logs(ApplicationLogsRequest)` now uses LogCache under the hood for recent logs (the default).No migration is needed at the Operations layer.
Most projects will need two dependencies; the OperationsAPI and an implementation of the ClientAPI. ForMaven, the dependencies would be defined like this:
22
60
@@ -76,6 +114,9 @@ Both the `cloudfoundry-operations` and `cloudfoundry-client` projects follow a [
> **`DopplerClient` — partial deprecation:** The `recentLogs()` method on `DopplerClient` is deprecated and only works against Loggregator \< 107.0 (CFD \< 24.3 / TAS \< 4.0). See the [Deprecations](#deprecations) section above for the migration path to `LogCacheClient`.
119
+
79
120
The lowest-level building blocks of the API are `ConnectionContext` and `TokenProvider`. These types are intended to be shared between instances of the clients, and come with out of the box implementations. To instantiate them, you configure them with builders:
0 commit comments