Interface HttpLifecycleObserver.HttpExchangeObserver

All Known Subinterfaces:
GrpcLifecycleObserver.GrpcExchangeObserver
Enclosing interface:
HttpLifecycleObserver

public static interface HttpLifecycleObserver.HttpExchangeObserver
An observer interface that provides visibility into events associated with a single HTTP exchange.

An exchange is represented by a request and a response. Both can be observed independently via their corresponding observers and may publish their events concurrently with each other because connections are full-duplex. The final event for the exchange is signaled only after both nested observers terminate. It guarantees visibility of both observers internal states inside the final callback.