Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
## Release v0.54.0

### New Features and Improvements

* [Experimental] Add support for asynchronous token refresh ([#464](https://github.com/databricks/databricks-sdk-java/pull/465)).
Enable this feature by setting the environment variable:
```bash
export DATABRICKS_ENABLE_EXPERIMENTAL_ASYNC_TOKEN_REFRESH=true
```
Note: This feature and its configuration are experimental and may be removed in future releases.
### Bug Fixes

### Documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ protected enum TokenState {
// The current OAuth token. May be null if not yet fetched.
protected volatile Token token;
// Whether asynchronous refresh is enabled.
private boolean asyncEnabled = false;
private boolean asyncEnabled =
Boolean.parseBoolean(System.getenv("DATABRICKS_ENABLE_EXPERIMENTAL_ASYNC_TOKEN_REFRESH"));
// Duration before expiry to consider a token as 'stale'.
private Duration staleDuration = DEFAULT_STALE_DURATION;
// Additional buffer before expiry to consider a token as expired.
Expand Down
Loading