org.apache.hc.core5.http.nio

## Interface AsyncEntityProducer

- All Superinterfaces:
    AsyncDataProducer, EntityDetails, ResourceHolder
  All Known Implementing Classes:
    AbstractBinAsyncEntityProducer, AbstractCharAsyncEntityProducer, AbstractClassicEntityProducer, AsyncEntityProducerWrapper, BasicAsyncEntityProducer, DigestingEntityProducer, FileEntityProducer, ReactiveEntityProducer, StringAsyncEntityProducer

      public interface AsyncEntityProducer
      extends AsyncDataProducer, EntityDetails

  Abstract asynchronous message entity producer.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `failed(Exception cause)` Triggered to signal a failure in data generation.
    `boolean` | `isRepeatable()` Determines whether the producer can consistently produce the same content after invocation of `ResourceHolder.releaseResources()`.

    - ### Methods inherited from interface org.apache.hc.core5.http.nio.AsyncDataProducer

      `available, produce`

    - ### Methods inherited from interface org.apache.hc.core5.http.nio.ResourceHolder

      `releaseResources`

    - ### Methods inherited from interface org.apache.hc.core5.http.EntityDetails

      `getContentEncoding, getContentLength, getContentType, getTrailerNames, isChunked`

- - ### Method Detail

    - #### isRepeatable

          boolean isRepeatable()

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

    - #### failed

          void failed(Exception cause)

      Triggered to signal a failure in data generation.
      Parameters:
        `cause` - the cause of the failure.

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.