Skip to content

Commit

Permalink
Move deprecated masterNodeTimeout() into ClusterManagerNodeRequest class
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Jun 17, 2022
1 parent 237031d commit 16c9ba8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,14 @@ public final Request clusterManagerNodeTimeout(String timeout) {
public final TimeValue clusterManagerNodeTimeout() {
return this.clusterManagerNodeTimeout;
}

/**
* Preserve the method so that classes implements AcknowledgedRequest don't need to override it for backwards compatibility.}
*
* @deprecated As of 2.1, because supporting inclusive language, replaced by {@link #clusterManagerNodeTimeout()}
*/
@Deprecated
public final TimeValue masterNodeTimeout() {
return this.clusterManagerNodeTimeout;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,4 @@ public final Request masterNodeTimeout(TimeValue timeout) {
public final Request masterNodeTimeout(String timeout) {
return masterNodeTimeout(TimeValue.parseTimeValue(timeout, null, getClass().getSimpleName() + ".masterNodeTimeout"));
}

@Deprecated
public final TimeValue masterNodeTimeout() {
return this.masterNodeTimeout;
}
}

0 comments on commit 16c9ba8

Please sign in to comment.