Package io.github.mfvanek.pg.connection
Interface PgHost
- All Known Implementing Classes:
PgHostImpl
public interface PgHost
An abstraction of database host.
This is a real server where your queries will be executed.
-
Method Details
-
getPgUrl
Gets a valid connection string to this host.- Returns:
- connection url to the host
-
getName
Gets the name of this host.- Returns:
- host name
-
canBePrimary
boolean canBePrimary()Determines whether this host can be a primary host.- Returns:
true
if this host can be a primary host
-
cannotBePrimary
default boolean cannotBePrimary()
-