public static class AsyncRandomHandler.RandomBinAsyncEntityProducer extends AbstractBinAsyncEntityProducer
| Constructor and Description |
|---|
RandomBinAsyncEntityProducer(long len) |
RandomBinAsyncEntityProducer(long len,
int delayMs,
boolean drip) |
| 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 RandomBinAsyncEntityProducer(long len)
public RandomBinAsyncEntityProducer(long len,
int delayMs,
boolean drip)
public 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.