Package io.github.mfvanek.pg.connection
Class PgHostImpl
java.lang.Object
io.github.mfvanek.pg.connection.PgHostImpl
- All Implemented Interfaces:
PgHost
-
Method Details
-
getPgUrl
Gets a valid connection string to this host. -
getName
Gets the name of this host. -
canBePrimary
public boolean canBePrimary()Determines whether this host can be a primary host.- Specified by:
canBePrimary
in interfacePgHost
- Returns:
true
if this host can be a primary host
-
ofPrimary
-
ofUrl
-
ofName
-
equals
-
hashCode
public final int hashCode() -
toString
-