Package xtdb.api
Class ModuleConfiguration.Builder
java.lang.Object
xtdb.api.ModuleConfiguration.Builder
- Enclosing class:
- ModuleConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Specifies the constructor of this module.Sets the configuration key to the given valueAdds the submodule to this module with the default parametersAdds an existing top-level module to this submodule as a dependency.with
(String name, Consumer<ModuleConfiguration.Builder> f) Adds the submodule to this module with the given configurationwith
(String module, ModuleConfiguration configuration) Adds the submodule to this module with the given configuration
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
set
Sets the configuration key to the given value- Returns:
- this
-
module
Specifies the constructor of this module. If it is not explicitly provided, XTDB will use the key that this module is referenced by. e.g. if it is included under a `"xtdb.rocksdb/kv-store"` key, XTDB will use the `"xtdb.rocksdb/->kv-store"` Clojure function to construct the module.- Parameters:
module
- the module constructor, e.g. `"xtdb.rocksdb/->kv-store"`- Returns:
- this
-
set
-
with
Adds the submodule to this module with the default parameters- Returns:
- this
-
with
Adds the submodule to this module with the given configuration- Returns:
- this
-
with
Adds the submodule to this module with the given configuration- Returns:
- this
-
with
Adds an existing top-level module to this submodule as a dependency.- Parameters:
key
- the key under which the dependency will appear to this modulemodule
- the key of the module to refer to- Returns:
- this
-
build
-