-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide config service methods to java clients (#3532)
Refactors existing java-client gRPC response observers into one shared implementation, so that all can be canceled. Fixes #3528
- Loading branch information
1 parent
9848395
commit 266558a
Showing
4 changed files
with
177 additions
and
323 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
java-client/session/src/main/java/io/deephaven/client/impl/ConfigService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.deephaven.client.impl; | ||
|
||
import io.deephaven.proto.backplane.grpc.ConfigValue; | ||
|
||
import java.util.Map; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* Provides server-specified configuration values to gRPC clients. | ||
*/ | ||
public interface ConfigService { | ||
/** | ||
* Returns constants from the server that may be helpful to correctly authenticate with the server. As such, | ||
* authentication is not required to obtain these values. | ||
*/ | ||
CompletableFuture<Map<String, ConfigValue>> getAuthenticationConstants(); | ||
|
||
/** | ||
* Returns constants from the server that are specified as being appropriate for clients to read. By default these | ||
* include values like the suggested authentication token refresh interval, and the server-side version of | ||
* deephaven, barrage, and java. | ||
*/ | ||
CompletableFuture<Map<String, ConfigValue>> getConfigurationConstants(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.