Top Description Methods
org.apache.hc.core5.http.nio

public Interface AsyncEntityProducer

extends AsyncDataProducer, EntityDetails
Known Direct Implementers
org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityProducer, org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityProducer, org.apache.hc.core5.http.nio.entity.AsyncEntityProducerWrapper, org.apache.hc.core5.http.nio.entity.BasicAsyncEntityProducer, org.apache.hc.core5.http.nio.entity.DigestingEntityProducer, org.apache.hc.core5.http.nio.entity.FileEntityProducer, org.apache.hc.core5.http.nio.entity.PathEntityProducer, org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityProducer
Imports
org.apache.hc.core5.http.EntityDetails

Abstract asynchronous message entity producer.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
failed(Exception
the cause of the failure.
cause
)

Triggered to signal a failure in data generation.

public boolean
isRepeatable()

Determines whether the producer can consistently produce the same content after invocation of ResourceHolder#releaseResources().

Inherited from org.apache.hc.core5.http.EntityDetails:
getContentEncodinggetContentLengthgetContentTypegetTrailerNamesisChunked
Inherited from org.apache.hc.core5.http.nio.AsyncDataProducer:
availableproduce

Method Detail

failedback to summary
public void failed(Exception cause)

Triggered to signal a failure in data generation.

Parameters
cause:Exception

the cause of the failure.

isRepeatableback to summary
public boolean isRepeatable()

Determines whether the producer can consistently produce the same content after invocation of ResourceHolder#releaseResources().