@@ -48,25 +48,26 @@ public interface DriverContext extends AttachmentPoint {
4848 @ NonNull
4949 String getSessionName ();
5050
51- /** @return The driver's configuration; never {@code null}. */
51+ /** Returns the driver's configuration; never {@code null}. */
5252 @ NonNull
5353 DriverConfig getConfig ();
5454
55- /** @return The driver's configuration loader; never {@code null}. */
55+ /** Returns the driver's configuration loader; never {@code null}. */
5656 @ NonNull
5757 DriverConfigLoader getConfigLoader ();
5858
5959 /**
60- * @return The driver's load balancing policies, keyed by profile name; the returned map is
61- * guaranteed to never be {@code null} and to always contain an entry for the {@value
62- * DriverExecutionProfile#DEFAULT_NAME} profile.
60+ * Returns the driver's load balancing policies, keyed by profile name; the returned map is
61+ * guaranteed to never be {@code null} and to always contain an entry for the {@value
62+ * DriverExecutionProfile#DEFAULT_NAME} profile.
6363 */
6464 @ NonNull
6565 Map <String , LoadBalancingPolicy > getLoadBalancingPolicies ();
6666
6767 /**
68+ * Returns the driver's load balancing policy for the given profile; never {@code null}.
69+ *
6870 * @param profileName the profile name; never {@code null}.
69- * @return The driver's load balancing policy for the given profile; never {@code null}.
7071 */
7172 @ NonNull
7273 default LoadBalancingPolicy getLoadBalancingPolicy (@ NonNull String profileName ) {
@@ -78,16 +79,17 @@ default LoadBalancingPolicy getLoadBalancingPolicy(@NonNull String profileName)
7879 }
7980
8081 /**
81- * @return The driver's retry policies, keyed by profile name; the returned map is guaranteed to
82- * never be {@code null} and to always contain an entry for the {@value
83- * DriverExecutionProfile#DEFAULT_NAME} profile.
82+ * Returns the driver's retry policies, keyed by profile name; the returned map is guaranteed to
83+ * never be {@code null} and to always contain an entry for the {@value
84+ * DriverExecutionProfile#DEFAULT_NAME} profile.
8485 */
8586 @ NonNull
8687 Map <String , RetryPolicy > getRetryPolicies ();
8788
8889 /**
90+ * Returns the driver's retry policy for the given profile; never {@code null}.
91+ *
8992 * @param profileName the profile name; never {@code null}.
90- * @return The driver's retry policy for the given profile; never {@code null}.
9193 */
9294 @ NonNull
9395 default RetryPolicy getRetryPolicy (@ NonNull String profileName ) {
@@ -96,16 +98,17 @@ default RetryPolicy getRetryPolicy(@NonNull String profileName) {
9698 }
9799
98100 /**
99- * @return The driver's speculative execution policies, keyed by profile name; the returned map is
100- * guaranteed to never be {@code null} and to always contain an entry for the {@value
101- * DriverExecutionProfile#DEFAULT_NAME} profile.
101+ * Returns the driver's speculative execution policies, keyed by profile name; the returned map is
102+ * guaranteed to never be {@code null} and to always contain an entry for the {@value
103+ * DriverExecutionProfile#DEFAULT_NAME} profile.
102104 */
103105 @ NonNull
104106 Map <String , SpeculativeExecutionPolicy > getSpeculativeExecutionPolicies ();
105107
106108 /**
109+ * Returns the driver's speculative execution policy for the given profile; never {@code null}.
110+ *
107111 * @param profileName the profile name; never {@code null}.
108- * @return The driver's speculative execution policy for the given profile; never {@code null}.
109112 */
110113 @ NonNull
111114 default SpeculativeExecutionPolicy getSpeculativeExecutionPolicy (@ NonNull String profileName ) {
@@ -115,39 +118,39 @@ default SpeculativeExecutionPolicy getSpeculativeExecutionPolicy(@NonNull String
115118 : getSpeculativeExecutionPolicies ().get (DriverExecutionProfile .DEFAULT_NAME );
116119 }
117120
118- /** @return The driver's timestamp generator; never {@code null}. */
121+ /** Returns the driver's timestamp generator; never {@code null}. */
119122 @ NonNull
120123 TimestampGenerator getTimestampGenerator ();
121124
122- /** @return The driver's reconnection policy; never {@code null}. */
125+ /** Returns the driver's reconnection policy; never {@code null}. */
123126 @ NonNull
124127 ReconnectionPolicy getReconnectionPolicy ();
125128
126- /** @return The driver's address translator; never {@code null}. */
129+ /** Returns the driver's address translator; never {@code null}. */
127130 @ NonNull
128131 AddressTranslator getAddressTranslator ();
129132
130- /** @return The authentication provider, if authentication was configured. */
133+ /** Returns the authentication provider, if authentication was configured. */
131134 @ NonNull
132135 Optional <AuthProvider > getAuthProvider ();
133136
134- /** @return The SSL engine factory, if SSL was configured. */
137+ /** Returns the SSL engine factory, if SSL was configured. */
135138 @ NonNull
136139 Optional <SslEngineFactory > getSslEngineFactory ();
137140
138- /** @return The driver's request tracker; never {@code null}. */
141+ /** Returns the driver's request tracker; never {@code null}. */
139142 @ NonNull
140143 RequestTracker getRequestTracker ();
141144
142- /** @return The driver's request throttler; never {@code null}. */
145+ /** Returns the driver's request throttler; never {@code null}. */
143146 @ NonNull
144147 RequestThrottler getRequestThrottler ();
145148
146- /** @return The driver's node state listener; never {@code null}. */
149+ /** Returns the driver's node state listener; never {@code null}. */
147150 @ NonNull
148151 NodeStateListener getNodeStateListener ();
149152
150- /** @return The driver's schema change listener; never {@code null}. */
153+ /** Returns the driver's schema change listener; never {@code null}. */
151154 @ NonNull
152155 SchemaChangeListener getSchemaChangeListener ();
153156}
0 commit comments