Class Connection

java.lang.Object
com.predic8.membrane.core.transport.http.Connection
All Implemented Interfaces:
MessageObserver, NonRelevantBodyObserver, Closeable, AutoCloseable

public class Connection extends Object implements Closeable, MessageObserver, NonRelevantBodyObserver
A Connection is an outbound TCP/IP connection, possibly managed by a ConnectionManager.

It is symbiotic to an Exchange during the exchange's HTTP client call, which starts in HttpClient.call(Exchange) and ends when the HTTP response body has fully been read (or never, if Request.isBindTargetConnectionToIncoming() is true).

The connection will be registered by the HttpClient as a MessageObserver on the Response to get notified when the HTTP response body has fully been read and it should deassociate itself from the exchange.