public static class AsyncRandomHandler.RandomBinAsyncEntityProducer extends 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(StreamChannel<ByteBuffer> channel) |
void |
releaseResources() |
available, getContentEncoding, getContentType, getTrailerNames, isChunked, producepublic void releaseResources()
releaseResources in interface ResourceHolderreleaseResources in class AbstractBinAsyncEntityProducerpublic boolean isRepeatable()
public long getContentLength()
getContentLength in interface EntityDetailsgetContentLength in class AbstractBinAsyncEntityProducerpublic int availableData()
availableData in class AbstractBinAsyncEntityProducerprotected void produceData(StreamChannel<ByteBuffer> channel) throws IOException
produceData in class AbstractBinAsyncEntityProducerIOExceptionpublic void failed(Exception cause)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.