public static class MultiSearchTemplateResponse.Item extends java.lang.Object implements Streamable
| Constructor and Description |
|---|
Item(SearchTemplateResponse response,
java.lang.Exception exception) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
getFailure() |
java.lang.String |
getFailureMessage()
The actual failure message, null if its not a failure.
|
SearchTemplateResponse |
getResponse()
The actual search response, null if its a failure.
|
boolean |
isFailure()
Is it a failed search?
|
void |
readFrom(StreamInput in) |
static MultiSearchTemplateResponse.Item |
readItem(StreamInput in) |
void |
writeTo(StreamOutput out) |
public Item(SearchTemplateResponse response, java.lang.Exception exception)
public boolean isFailure()
@Nullable public java.lang.String getFailureMessage()
@Nullable public SearchTemplateResponse getResponse()
public static MultiSearchTemplateResponse.Item readItem(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
readFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
writeTo in interface Streamablejava.io.IOExceptionpublic java.lang.Exception getFailure()