Returns the complete endpoint URL with host, port, path and serialized parameters.
Marks this connection as alive, ie. it is eligible to be returned from the pool by the selector.
Marks this connection as dead, incrementing the failures counter and storing the current time as dead_since.
Marks this connection as healthy, ie. a request has been successfully performed with it.
Marks this connection as alive, if the required timeout has passed.
Wraps the connection information and logic.
The Connection instance wraps the host information (hostname, port, attributes, etc), as well as the "session" (a transport client object, such as a {elasticsearch.transport.http.vibe} instance).
It provides methods to construct and properly encode the URLs and paths for passing them to the transport client object.
It provides methods to handle connection lifecycle (dead, alive, healthy).