Package org.elasticsearch.http
Class HttpPipelinedResponse
java.lang.Object
org.elasticsearch.http.HttpPipelinedResponse
- All Implemented Interfaces:
java.lang.Comparable<HttpPipelinedMessage>,HttpPipelinedMessage,HttpResponse
public class HttpPipelinedResponse extends java.lang.Object implements HttpPipelinedMessage, HttpResponse
-
Constructor Summary
Constructors Constructor Description HttpPipelinedResponse(int sequence, HttpResponse delegate) -
Method Summary
Modifier and Type Method Description voidaddHeader(java.lang.String name, java.lang.String value)booleancontainsHeader(java.lang.String name)HttpResponsegetDelegateRequest()intgetSequence()Get the sequence number for this message.
-
Constructor Details
-
Method Details
-
getSequence
public int getSequence()Description copied from interface:HttpPipelinedMessageGet the sequence number for this message.- Specified by:
getSequencein interfaceHttpPipelinedMessage- Returns:
- the sequence number
-
addHeader
public void addHeader(java.lang.String name, java.lang.String value)- Specified by:
addHeaderin interfaceHttpResponse
-
containsHeader
public boolean containsHeader(java.lang.String name)- Specified by:
containsHeaderin interfaceHttpResponse
-
getDelegateRequest
-