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
public interface AsyncEntityProducer extends AsyncDataProducer, EntityDetails
Abstract asynchronous message entity producer.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailed(java.lang.Exception cause)Triggered to signal a failure in data generation.booleanisRepeatable()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 Detail
-
isRepeatable
boolean isRepeatable()
Determines whether the producer can consistently produce the same content after invocation ofResourceHolder.releaseResources().
-
failed
void failed(java.lang.Exception cause)
Triggered to signal a failure in data generation.- Parameters:
cause- the cause of the failure.
-
-