Class BufferedByteConsumer
java.lang.Object
org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<org.apache.hc.core5.http.io.entity.ByteArrayEntity>
co.elastic.clients.transport.rest5_client.low_level.BufferedByteConsumer
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer,org.apache.hc.core5.http.nio.AsyncEntityConsumer<org.apache.hc.core5.http.io.entity.ByteArrayEntity>,org.apache.hc.core5.http.nio.ResourceHolder
public class BufferedByteConsumer
extends org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<org.apache.hc.core5.http.io.entity.ByteArrayEntity>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected voiddata(ByteBuffer src, boolean endOfStream) protected org.apache.hc.core5.http.io.entity.ByteArrayEntityvoidprotected voidstreamStart(org.apache.hc.core5.http.ContentType contentType) Methods inherited from class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer
completed, failed, getContent, streamStartMethods inherited from class org.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
consume, streamEnd, updateCapacityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.nio.AsyncDataConsumer
consume, streamEnd, updateCapacity
-
Constructor Details
-
BufferedByteConsumer
public BufferedByteConsumer(int bufferLimit)
-
-
Method Details
-
streamStart
protected void streamStart(org.apache.hc.core5.http.ContentType contentType) - Specified by:
streamStartin classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<org.apache.hc.core5.http.io.entity.ByteArrayEntity>
-
capacityIncrement
protected int capacityIncrement()- Specified by:
capacityIncrementin classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer
-
data
protected void data(ByteBuffer src, boolean endOfStream) throws org.apache.hc.core5.http.ContentTooLongException - Specified by:
datain classorg.apache.hc.core5.http.nio.entity.AbstractBinDataConsumer- Throws:
org.apache.hc.core5.http.ContentTooLongException
-
generateContent
protected org.apache.hc.core5.http.io.entity.ByteArrayEntity generateContent()- Specified by:
generateContentin classorg.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer<org.apache.hc.core5.http.io.entity.ByteArrayEntity>
-
releaseResources
public void releaseResources()
-