public static class AsyncRandomHandler.RandomBinAsyncEntityProducer
extends org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducer
| Constructor and Description |
|---|
RandomBinAsyncEntityProducer(long len) |
| Modifier and Type | Method and Description |
|---|---|
int |
availableData() |
void |
failed(Exception cause) |
long |
getContentLength() |
boolean |
isRepeatable() |
protected void |
produceData(org.apache.hc.core5.http.nio.StreamChannel<ByteBuffer> channel) |
void |
releaseResources() |
public void releaseResources()
releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolderreleaseResources in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducerpublic boolean isRepeatable()
public long getContentLength()
getContentLength in interface org.apache.hc.core5.http.EntityDetailsgetContentLength in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducerpublic int availableData()
availableData in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducerprotected void produceData(org.apache.hc.core5.http.nio.StreamChannel<ByteBuffer> channel) throws IOException
produceData in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducerIOExceptionpublic void failed(Exception cause)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.