Interface PreparableModelLoadingPlugin.DataLoader<T>
- Enclosing interface:
PreparableModelLoadingPlugin<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionload
(ResourceManager resourceManager, Executor executor) Returns aCompletableFuture
that will load the data.
-
Method Details
-
load
Returns aCompletableFuture
that will load the data. Do not block the thread when this function is called, rather useCompletableFuture.supplyAsync(Supplier, Executor)
to compute the data. The completable future should be scheduled to run using the passed executor.- Parameters:
resourceManager
- The resource manager that can be used to retrieve resources.executor
- The executor that must be used to schedule any completable future.
-