public static enum LoaderService.UpdatePolicy extends java.lang.Enum<LoaderService.UpdatePolicy>
LoaderService
tries to update the local cache with newest version of
the registered data resources, accessing the configured remote
URL
s. By default no remote connections are done (
NEVER
).Enum Constant and Description |
---|
LAZY
The resource will be loaded automatically from remote only once, when
accessed the first time.
|
NEVER
The resource will never be updated from remote, only the fallback URL
will be evaluated.
|
ONSTARTUP
The resource will be loaded automatically from remote only once on
startup.
|
SCHEDULED
The resource should be regularly reloaded based on a schedule.
|
Modifier and Type | Method and Description |
---|---|
static LoaderService.UpdatePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoaderService.UpdatePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoaderService.UpdatePolicy LAZY
public static final LoaderService.UpdatePolicy NEVER
public static final LoaderService.UpdatePolicy ONSTARTUP
public static final LoaderService.UpdatePolicy SCHEDULED
public static LoaderService.UpdatePolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static LoaderService.UpdatePolicy[] values()
for (LoaderService.UpdatePolicy c : LoaderService.UpdatePolicy.values()) System.out.println(c);