Package io.github.mfvanek.pg.connection
Interface PrimaryHostDeterminer
- All Known Implementing Classes:
PrimaryHostDeterminerImpl
public interface PrimaryHostDeterminer
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isPrimary
(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
-PgConnection
object- Returns:
true
if this is a connection to a primary host.
-