Skip to content

Commit 5b39de6

Browse files
committed
Fix links to RetryPolicy methods in javadocs of driver error classes
1 parent 18aa112 commit 5b39de6

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

core/src/main/java/com/datastax/oss/driver/api/core/connection/HeartbeatException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
*
2929
* <p>Heartbeat queries are sent automatically on idle connections, to ensure that they are still
3030
* alive. If a heartbeat query fails, the connection is closed, and all pending queries are aborted.
31-
* The exception will be passed to {@link RetryPolicy#onRequestAborted(Request, Throwable, int)},
32-
* which decides what to do next (the default policy retries the query on the next node).
31+
* The exception will be passed to {@link RetryPolicy#onRequestAbortedVerdict(Request, Throwable,
32+
* int)}, which decides what to do next (the default policy retries the query on the next node).
3333
*/
3434
public class HeartbeatException extends DriverException {
3535

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/ReadFailureException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <p>This happens when some of the replicas that were contacted by the coordinator replied with an
3434
* error.
3535
*
36-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
36+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3737
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3838
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3939
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/ReadTimeoutException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
/**
2828
* A server-side timeout during a read query.
2929
*
30-
* <p>This exception is processed by {@link RetryPolicy#onReadTimeout(Request, ConsistencyLevel,
31-
* int, int, boolean, int)}, which will decide if it is rethrown directly to the client or if the
32-
* request should be retried. If all other tried nodes also fail, this exception will appear in the
33-
* {@link AllNodesFailedException} thrown to the client.
30+
* <p>This exception is processed by {@link RetryPolicy#onReadTimeoutVerdict(Request,
31+
* ConsistencyLevel, int, int, boolean, int)}, which will decide if it is rethrown directly to the
32+
* client or if the request should be retried. If all other tried nodes also fail, this exception
33+
* will appear in the {@link AllNodesFailedException} thrown to the client.
3434
*/
3535
public class ReadTimeoutException extends QueryConsistencyException {
3636

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/ServerError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* <p>This should be considered as a server bug and reported as such.
3131
*
32-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
32+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3333
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3434
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3535
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/TruncateException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* An error during a truncation operation.
2929
*
30-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
30+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3131
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3232
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3333
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/UnavailableException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
* Thrown when the coordinator knows there is not enough replicas alive to perform a query with the
2929
* requested consistency level.
3030
*
31-
* <p>This exception is processed by {@link RetryPolicy#onUnavailable(Request, ConsistencyLevel,
32-
* int, int, int)}, which will decide if it is rethrown directly to the client or if the request
33-
* should be retried. If all other tried nodes also fail, this exception will appear in the {@link
34-
* AllNodesFailedException} thrown to the client.
31+
* <p>This exception is processed by {@link RetryPolicy#onUnavailableVerdict(Request,
32+
* ConsistencyLevel, int, int, int)}, which will decide if it is rethrown directly to the client or
33+
* if the request should be retried. If all other tried nodes also fail, this exception will appear
34+
* in the {@link AllNodesFailedException} thrown to the client.
3535
*/
3636
public class UnavailableException extends QueryExecutionException {
3737
private final ConsistencyLevel consistencyLevel;

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/WriteFailureException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <p>This happens when some of the replicas that were contacted by the coordinator replied with an
3434
* error.
3535
*
36-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
36+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3737
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3838
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3939
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/WriteTimeoutException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
/**
2929
* A server-side timeout during a write query.
3030
*
31-
* <p>This exception is processed by {@link RetryPolicy#onWriteTimeout(Request, ConsistencyLevel,
32-
* WriteType, int, int, int)}, which will decide if it is rethrown directly to the client or if the
33-
* request should be retried. If all other tried nodes also fail, this exception will appear in the
34-
* {@link AllNodesFailedException} thrown to the client.
31+
* <p>This exception is processed by {@link RetryPolicy#onWriteTimeoutVerdict(Request,
32+
* ConsistencyLevel, WriteType, int, int, int)}, which will decide if it is rethrown directly to the
33+
* client or if the request should be retried. If all other tried nodes also fail, this exception
34+
* will appear in the {@link AllNodesFailedException} thrown to the client.
3535
*/
3636
public class WriteTimeoutException extends QueryConsistencyException {
3737

0 commit comments

Comments
 (0)