Package org.pjdbc.drivers
Class FederatingDriver.FederateConfig
java.lang.Object
org.pjdbc.drivers.FederatingDriver.FederateConfig
- Enclosing class:
FederatingDriver
Configuration for the federating driver.
-
Constructor Summary
ConstructorsConstructorDescriptionFederateConfig(FederatingDriver.MergeStrategy mergeStrategy, boolean parallelExecution, long timeout, boolean strictTransactions, List<String> targetUrls, Map<String, Integer> tableRouting) -
Method Summary
Modifier and TypeMethodDescriptionintgetRouteForTable(String tableName) Get the database index for a table, or -1 if not routed.Get table-to-database routing map.longbooleanCheck if table-based routing is enabled.booleanboolean
-
Constructor Details
-
FederateConfig
-
-
Method Details
-
getMergeStrategy
-
isParallelExecution
public boolean isParallelExecution() -
getTimeout
public long getTimeout() -
isStrictTransactions
public boolean isStrictTransactions() -
getTargetUrls
-
getTableRouting
Get table-to-database routing map. Keys are lowercase table names, values are 0-based database indices. -
hasTableRouting
public boolean hasTableRouting()Check if table-based routing is enabled. -
getRouteForTable
Get the database index for a table, or -1 if not routed. -
fromUrl
-