Package org.elasticsearch.test.rest
Class FakeHttpBodyStream
java.lang.Object
org.elasticsearch.test.rest.FakeHttpBodyStream
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.core.Releasable,HttpBody,HttpBody.Stream
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpBody
HttpBody.ByteRefHttpBody, HttpBody.ChunkHandler, HttpBody.Full, HttpBody.Stream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTracingHandler(HttpBody.ChunkHandler chunkHandler) voidclose()handler()booleanisClosed()booleanvoidnext()voidsendNext(ReleasableBytesReference chunk, boolean isLast) voidsetHandler(HttpBody.ChunkHandler chunkHandler)
-
Constructor Details
-
FakeHttpBodyStream
public FakeHttpBodyStream()
-
-
Method Details
-
isClosed
public boolean isClosed() -
isRequested
public boolean isRequested() -
handler
- Specified by:
handlerin interfaceHttpBody.Stream
-
addTracingHandler
- Specified by:
addTracingHandlerin interfaceHttpBody.Stream
-
setHandler
- Specified by:
setHandlerin interfaceHttpBody.Stream
-
next
public void next()- Specified by:
nextin interfaceHttpBody.Stream
-
sendNext
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-