aratno commented on code in PR #2036:
URL:
https://github.com/apache/cassandra-java-driver/pull/2036#discussion_r2302370075
##########
core/src/main/java/com/datastax/oss/driver/api/core/loadbalancing/LoadBalancingPolicy.java:
##########
@@ -76,6 +76,12 @@ default Optional<RequestTracker> getRequestTracker() {
*/
void init(@NonNull Map<UUID, Node> nodes, @NonNull DistanceReporter
distanceReporter);
+ /** Returns map containing details that impact C* node connectivity. */
+ @NonNull
+ default Optional<Map<String, ?>> getStartupConfiguration() {
Review Comment:
Why not make this a Map and default to empty map, instead of using Optional?
Could also make DriverBaggage its own class, since it's used in a few
different places and we expect it to be used even more than
LoadBalancingPolicies.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]