Interface ConnectionStrategy
- All Known Implementing Classes:
MultiHostConnectionStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface defining a connection strategy on how to obtain a Postgres
Client object.
Typically, connection strategies use a ConnectionFunction and are configured with a connection endpoint to establish a client connection to the target server as the connect()
method does not take any parameters.
- Since:
- 1.0
- See Also:
-
Method Summary
-
Method Details
-
connect
Mono<io.r2dbc.postgresql.client.Client> connect()Establish a connection to a target server that is determined by this connection strategy.- Returns:
- a mono that initiates the connection upon subscription.
-