Interface Exchange

All Known Subinterfaces:
ErrorExchange<A>

public interface Exchange

Represents a server exchange between a client and a server.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
Request, Response
  • Method Summary

    Modifier and Type
    Method
    Description
    finalizer​(reactor.core.publisher.Mono<Void> finalizer)
    Adds a finalizer to the exchange which completes once the exchange is fully processed.
    Returns the request part of the exchange.
    Returns the response part of the exchange.
  • Method Details

    • request

      Request request()

      Returns the request part of the exchange.

      Returns:
      the request part
    • response

      Response response()

      Returns the response part of the exchange.

      Returns:
      the response part
    • finalizer

      Exchange finalizer(reactor.core.publisher.Mono<Void> finalizer)

      Adds a finalizer to the exchange which completes once the exchange is fully processed.

      A exchange is considered fully processed when the last chunk of the response has been fully sent to the client or following an error.

      Parameters:
      finalizer - a finalizer