public class DefaultElasticsearchRequestSuccessAssessor extends Object implements ElasticsearchRequestSuccessAssessor
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultElasticsearchRequestSuccessAssessor.Builder |
| Modifier and Type | Field and Description |
|---|---|
static DefaultElasticsearchRequestSuccessAssessor |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static DefaultElasticsearchRequestSuccessAssessor.Builder |
builder() |
void |
checkSuccess(ElasticsearchResponse response)
Check the given response, throwing an exception if the reponse indicates a failure.
|
void |
checkSuccess(com.google.gson.JsonObject bulkResponseItem)
Check the given bulk response item, return
true if it is successful, false otherwise. |
String |
toString() |
public static final DefaultElasticsearchRequestSuccessAssessor INSTANCE
public static DefaultElasticsearchRequestSuccessAssessor.Builder builder()
public void checkSuccess(ElasticsearchResponse response) throws SearchException
ElasticsearchRequestSuccessAssessorcheckSuccess in interface ElasticsearchRequestSuccessAssessorresponse - The response, containing information about the outcome of the request.SearchException - If the result is a failure.public void checkSuccess(com.google.gson.JsonObject bulkResponseItem)
ElasticsearchRequestSuccessAssessortrue if it is successful, false otherwise.checkSuccess in interface ElasticsearchRequestSuccessAssessorbulkResponseItem - The part of the response body concerning the request whose success is to be assessed.Copyright © 2006–2017 Hibernate. All rights reserved.