public enum LoadingStrategy extends Enum<LoadingStrategy>
LoadingStrategy the following actions are performed
if the entry's data has not been loaded yet:
VOLATILE:
Enqueue the entry for asynchronous loading by a fetcher thread.
BLOCKING:
Load the data immediately (on the current thread).
BUDGETED:
Load the data immediately if there is enough IoTimeBudget
left for the current thread group. Otherwise enqueue the cell for
asynchronous loading by a fetcher thread.
DONTLOAD:
Do nothing (entry remains invalid).
| Enum Constant and Description |
|---|
BLOCKING |
BUDGETED |
DONTLOAD |
VOLATILE |
| Modifier and Type | Method and Description |
|---|---|
static LoadingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadingStrategy VOLATILE
public static final LoadingStrategy BLOCKING
public static final LoadingStrategy BUDGETED
public static final LoadingStrategy DONTLOAD
public static LoadingStrategy[] values()
for (LoadingStrategy c : LoadingStrategy.values()) System.out.println(c);
public static LoadingStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015–2022 ImgLib2. All rights reserved.