Package com.spotify.zoltar.loaders
Interface ModelMemoizer<M extends Model<?>>
-
- Type Parameters:
M
- Model instance type.
- All Superinterfaces:
AutoCloseable
,Closeable
,ModelLoader<M>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface ModelMemoizer<M extends Model<?>> extends ModelLoader<M>
Deprecated.Memoizes the result of the suppliedModelLoader
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.spotify.zoltar.ModelLoader
ModelLoader.ConsLoader<M extends Model<?>>, ModelLoader.PreLoader<M extends Model<?>>, ModelLoader.ThrowableSupplier<M extends Model<?>>
-
-
Field Summary
-
Fields inherited from interface com.spotify.zoltar.ModelLoader
DEFAULT_EXECUTOR_SERVICE
-
-
Method Summary
All Methods Static Methods Deprecated Methods Modifier and Type Method Description static <M extends Model<?>>
ModelMemoizer<M>memoize(ModelLoader<M> loader)
Deprecated.Creates a memoized model loader.
-
-
-
Method Detail
-
memoize
static <M extends Model<?>> ModelMemoizer<M> memoize(ModelLoader<M> loader)
Deprecated.Creates a memoized model loader.- Type Parameters:
M
- Model instance type.- Parameters:
loader
- ModelLoader to be memoized.- Returns:
- Memoized loader.
-
-