Class BulkItemRequest

  • All Implemented Interfaces:

    public class BulkItemRequest
    extends java.lang.Object
    implements Writeable
    • Constructor Detail

      • BulkItemRequest

        public BulkItemRequest​(int id,
                               DocWriteRequest<?> request)
    • Method Detail

      • id

        public int id()
      • index

        public java.lang.String index()
      • abort

        public void abort​(java.lang.String index,
                          java.lang.Exception cause)
        Abort this request, and store a BulkItemResponse.Failure response.
        index - The concrete index that was resolved for this request
        cause - The cause of the rejection (may not be null)
        java.lang.IllegalStateException - If a response already exists for this request