Package org.apache.hc.core5.http.nio
Interface AsyncEntityProducer
- All Superinterfaces:
AsyncDataProducer
,EntityDetails
,ResourceHolder
- All Known Implementing Classes:
AbstractBinAsyncEntityProducer
,AbstractCharAsyncEntityProducer
,AbstractClassicEntityProducer
,AsyncEntityProducerWrapper
,BasicAsyncEntityProducer
,DigestingEntityProducer
,FileEntityProducer
,PathEntityProducer
,ReactiveEntityProducer
,StringAsyncEntityProducer
Abstract asynchronous message entity producer.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Triggered to signal a failure in data generation.boolean
Determines whether the producer can consistently produce the same content after invocation ofResourceHolder.releaseResources()
.Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataProducer
available, produce
Methods inherited from interface org.apache.hc.core5.http.EntityDetails
getContentEncoding, getContentLength, getContentType, getTrailerNames, isChunked
Methods inherited from interface org.apache.hc.core5.http.nio.ResourceHolder
releaseResources
-
Method Details
-
isRepeatable
boolean isRepeatable()Determines whether the producer can consistently produce the same content after invocation ofResourceHolder.releaseResources()
. -
failed
Triggered to signal a failure in data generation.- Parameters:
cause
- the cause of the failure.
-