public interface BackendRequestResultAssessor<T extends io.searchbox.client.JestResult>
| Modifier and Type | Method and Description |
|---|---|
void |
checkSuccess(io.searchbox.action.Action<? extends T> request,
T result)
Checks the given detailed result, throwing an exception if the result is a failure.
|
boolean |
isSuccess(io.searchbox.core.BulkResult.BulkResultItem bulkResultItem)
Checks the given summary result, return
true if it is successful, false otherwise. |
void checkSuccess(io.searchbox.action.Action<? extends T> request, T result) throws SearchException
request - The request that produced the result.result - The detailed result.SearchException - If the result is a failure.boolean isSuccess(io.searchbox.core.BulkResult.BulkResultItem bulkResultItem)
true if it is successful, false otherwise.bulkResultItem - The summary result.true if the result is successful, false otherwise.Copyright © 2006–2017 Hibernate. All rights reserved.