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 TypeMethodDescriptionvoidTriggered to signal a failure in data generation.booleanDetermines 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, produceMethods inherited from interface org.apache.hc.core5.http.EntityDetails
getContentEncoding, getContentLength, getContentType, getTrailerNames, isChunkedMethods 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.
-