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