Interface PrimaryHostDeterminer

All Known Implementing Classes:
PrimaryHostDeterminerImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PrimaryHostDeterminer
Represents a service that determines if a given database connection is established with a primary host.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isPrimary(PgConnection pgConnection)
    Determines whether given connection is a connection to a primary host.
  • Method Details

    • isPrimary

      boolean isPrimary(@Nonnull PgConnection pgConnection)
      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.