mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 22:09:24 +00:00
[Docs] Minor fix for SubmitAsyncSearchRequest.keepOnCompletion javadoc (#54325)
The semantics and the default value for this parameter have changed, adapting the javadoc accordingly.
This commit is contained in:
parent
2984a54b7f
commit
0d17295601
@ -77,14 +77,14 @@ public class SubmitAsyncSearchRequest implements Validatable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the resource resource should be removed on completion or failure (defaults to true).
|
||||
* Returns whether the resource resource should be kept on completion or failure (defaults to false).
|
||||
*/
|
||||
public Boolean isKeepOnCompletion() {
|
||||
return keepOnCompletion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the resource should be removed on completion or failure (defaults to true).
|
||||
* Determines if the resource should be kept on completion or failure (defaults to false).
|
||||
*/
|
||||
public void setKeepOnCompletion(boolean keepOnCompletion) {
|
||||
this.keepOnCompletion = keepOnCompletion;
|
||||
|
@ -113,7 +113,7 @@ public class SubmitAsyncSearchRequest extends ActionRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Should the resource be removed on completion or failure (defaults to true).
|
||||
* Should the resource be kept on completion or failure (defaults to false).
|
||||
*/
|
||||
public SubmitAsyncSearchRequest setKeepOnCompletion(boolean value) {
|
||||
this.keepOnCompletion = value;
|
||||
@ -162,8 +162,12 @@ public class SubmitAsyncSearchRequest extends ActionRequest {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
SubmitAsyncSearchRequest request1 = (SubmitAsyncSearchRequest) o;
|
||||
return keepOnCompletion == request1.keepOnCompletion &&
|
||||
waitForCompletionTimeout.equals(request1.waitForCompletionTimeout) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user