Skip to content

Commit

Permalink
Router: javadoc isClientDb() and isMultihomeDb()
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Oct 6, 2023
1 parent daa2ae1 commit 4d30690
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ String getDbDir() {
return _dbDir;
}

/**
* Check if the database is a client DB.
*
* @return true if the database is a client DB, false otherwise
* @since 0.9.60
*/
public boolean isClientDb() {
// This is a null check in disguise, don't use .equals() here.
// FNDS.MAIN_DBID is always null. and if _dbid is also null it is not a client Db
Expand All @@ -316,6 +322,13 @@ public boolean isClientDb() {
return true;
}


/**
* Checks if the current database is a multihome database.
*
* @return true if the current database is a multihome database, false otherwise.
* @since 0.9.60
*/
public boolean isMultihomeDb() {
// This is a null check in disguise, don't use .equals() here.
// FNDS.MAIN_DBID is always null, and if _dbid is null it is not the multihome Db
Expand Down

0 comments on commit 4d30690

Please sign in to comment.