org.apache.hc.core5.http.nio

## Interface AsyncDataExchangeHandler

- All Superinterfaces:
    AsyncDataConsumer, AsyncDataProducer, ResourceHolder
  All Known Subinterfaces:
    AsyncClientExchangeHandler, AsyncServerExchangeHandler
  All Known Implementing Classes:
    AbstractClassicServerExchangeHandler, AbstractServerExchangeHandler, BasicAsyncServerExpectationDecorator, BasicClientExchangeHandler, BasicServerExchangeHandler, ImmediateResponseExchangeHandler, ReactiveServerExchangeHandler

      public interface AsyncDataExchangeHandler
      extends AsyncDataConsumer, AsyncDataProducer

  Abstract asynchronous data exchange handler that acts as a data consumer and a data producer.
  Since:
    5.0

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `failed(Exception cause)` Triggered to signal a failure in data processing.

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

      `consume, streamEnd, updateCapacity`

    - ### 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`

- - ### Method Detail

    - #### failed

          void failed(Exception cause)

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

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