public static class BulkItemResponse.Failure extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Failure(StreamInput in)
Read from a stream.
|
Failure(java.lang.String index,
java.lang.String type,
java.lang.String id,
java.lang.Exception cause) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
getCause()
The actual cause of the failure.
|
java.lang.String |
getId()
The id of the action.
|
java.lang.String |
getIndex()
The index name of the action.
|
java.lang.String |
getMessage()
The failure message.
|
RestStatus |
getStatus()
The rest status.
|
java.lang.String |
getType()
The type of the action.
|
boolean |
isAborted()
Whether this failure is the result of an abort.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic Failure(java.lang.String index,
java.lang.String type,
java.lang.String id,
java.lang.Exception cause)
public Failure(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic java.lang.String getIndex()
public java.lang.String getType()
public java.lang.String getId()
public java.lang.String getMessage()
public RestStatus getStatus()
public java.lang.Exception getCause()
public boolean isAborted()
true, the request to which this failure relates should never be retried, regardless of the cause.BulkItemRequest.abort(String, Exception)public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object