org.hibernate.search.elasticsearch.work.impl

## Interface ElasticsearchRequestSuccessAssessor

- All Known Implementing Classes:
    DefaultElasticsearchRequestSuccessAssessor

      public interface ElasticsearchRequestSuccessAssessor

  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

- - ### Method Detail

    - #### checkSuccess

          void checkSuccess(ElasticsearchResponse response)
                     throws SearchException

      Check the given response, throwing an exception if the reponse indicates a failure.
      Parameters:
        `response` - The response, containing information about the outcome of the request.
      Throws:
        `SearchException` - If the result is a failure.

    - #### checkSuccess

          void checkSuccess(com.google.gson.JsonObject bulkResponseItem)

      Check the given bulk response item, return `true` if it is successful, `false` otherwise.
      Parameters:
        `bulkResponseItem` - The part of the response body concerning the request whose success is to be assessed.
      Throws:
        `SearchException` - If the result is a failure.

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved