Retrieves the underlying consumer connection.
This method uses a type assertion to return the connection as the requested type. It is the caller's responsibility to ensure the correct type is used.
The expected type of the consumer connection.
The consumer connection cast to type T.
Defines the public contract for a consumer connector.
The connector is responsible for establishing and managing the lifecycle of the consumer connection.