Package io.github.mfvanek.pg.connection
Interface PrimaryHostDeterminer
- All Known Implementing Classes:
PrimaryHostDeterminerImpl
public interface PrimaryHostDeterminer
Represents a service that determines if a given database connection is established with a primary host.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPrimary(PgConnection pgConnection) Determines whether given connection is a connection to a primary host.
-
Method Details
-
isPrimary
Determines whether given connection is a connection to a primary host.- Parameters:
pgConnection-PgConnectionobject- Returns:
trueif this is a connection to a primary host.
-