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.ResourceHolder
releaseResources
in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducer
public boolean isRepeatable()
public long getContentLength()
getContentLength
in interface org.apache.hc.core5.http.EntityDetails
getContentLength
in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducer
public int availableData()
availableData
in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducer
protected void produceData(org.apache.hc.core5.http.nio.StreamChannel<ByteBuffer> channel) throws IOException
produceData
in class org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducer
IOException
public void failed(Exception cause)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.