Class DistributedQueryRunner.Builder<SELF extends DistributedQueryRunner.Builder<?>>

  • Enclosing class:
    DistributedQueryRunner

    public static class DistributedQueryRunner.Builder<SELF extends DistributedQueryRunner.Builder<?>>
    extends Object
    • Constructor Detail

      • Builder

        protected Builder​(Session defaultSession)
    • Method Detail

      • setNodeCount

        public SELF setNodeCount​(int nodeCount)
      • setExtraProperties

        public SELF setExtraProperties​(Map<String,​String> extraProperties)
      • addExtraProperty

        public SELF addExtraProperty​(String key,
                                     String value)
      • setCoordinatorProperties

        public SELF setCoordinatorProperties​(Map<String,​String> coordinatorProperties)
      • setBackupCoordinatorProperties

        public SELF setBackupCoordinatorProperties​(Map<String,​String> backupCoordinatorProperties)
      • setAdditionalSetup

        public SELF setAdditionalSetup​(Consumer<QueryRunner> additionalSetup)
        Additional configuration to be applied on QueryRunner being built. Invoked after engine configuration is applied, but before connector-specific configurations (if any) are applied.
      • setSingleCoordinatorProperty

        public SELF setSingleCoordinatorProperty​(String key,
                                                 String value)
        Sets coordinator properties being equal to a map containing given key and value. Note, that calling this method OVERWRITES previously set property values. As a result, it should only be used when only one coordinator property needs to be set.
      • setEnvironment

        public SELF setEnvironment​(String environment)
      • setAdditionalModule

        public SELF setAdditionalModule​(com.google.inject.Module additionalModule)
      • enableBackupCoordinator

        public SELF enableBackupCoordinator()
      • self

        protected SELF self()