public class FileModelLoader<ModelType extends Model<?>> extends ModelLoader<ModelType,FileModelLoader<ModelType>>
ModelLoader.ModelConstructor<LoadedModelType>| Constructor and Description |
|---|
FileModelLoader(PgxSession session,
oracle.pgx.api.internal.Core core,
java.util.function.Supplier<java.lang.String> keystorePathSupplier,
java.util.function.Supplier<char[]> keystorePasswordSupplier,
ModelKind modelKind,
ModelLoader.ModelConstructor<ModelType> constructor) |
| Modifier and Type | Method and Description |
|---|---|
FileModelLoader<ModelType> |
key(java.lang.String key)
Configures the encryption key of the model file.
|
PgxFuture<ModelType> |
loadAsync()
Trigger the load, once all the parameters have been set
(async version)
|
FileModelLoader<ModelType> |
path(java.lang.String path)
Configures the path to the model file
|
loadpublic FileModelLoader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier, ModelKind modelKind, ModelLoader.ModelConstructor<ModelType> constructor)
public FileModelLoader<ModelType> key(java.lang.String key)
key - the encryption keypublic PgxFuture<ModelType> loadAsync()
ModelLoaderloadAsync in class ModelLoader<ModelType extends Model<?>,FileModelLoader<ModelType extends Model<?>>>public FileModelLoader<ModelType> path(java.lang.String path)
path - the path to the model file