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 Details

    • 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.