public class FileModelLoader<ModelType extends Model<ModelType>> 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
|
load
public 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()
ModelLoader
loadAsync
in class ModelLoader<ModelType extends Model<ModelType>,FileModelLoader<ModelType extends Model<ModelType>>>
public FileModelLoader<ModelType> path(java.lang.String path)
path
- the path to the model file