Class FederatingDriver.FederateConfig

java.lang.Object
org.pjdbc.drivers.FederatingDriver.FederateConfig
Enclosing class:
FederatingDriver

public static class FederatingDriver.FederateConfig extends Object
Configuration for the federating driver.
  • Constructor Details

  • Method Details

    • getMergeStrategy

      public FederatingDriver.MergeStrategy getMergeStrategy()
    • isParallelExecution

      public boolean isParallelExecution()
    • getTimeout

      public long getTimeout()
    • isStrictTransactions

      public boolean isStrictTransactions()
    • getTargetUrls

      public List<String> getTargetUrls()
    • getTableRouting

      public Map<String,Integer> 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

      public int getRouteForTable(String tableName)
      Get the database index for a table, or -1 if not routed.
    • fromUrl

      public static FederatingDriver.FederateConfig fromUrl(String url, List<String> targetUrls)