public enum CacheStrategy extends Enum<CacheStrategy>
Enum Constant and Description |
---|
MANUAL
Deal with cached data manually.
|
ON_CALL
Refresh the data every time you call a method on the fileObject.
|
ON_RESOLVE
Refresh the data every time you request a file from
FileSystemManager.resolveFile(java.io.File, java.lang.String) . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the scope.
|
String |
toString()
Returns the name of the scope.
|
static CacheStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheStrategy MANUAL
FileObject.refresh()
to refresh the object data.public static final CacheStrategy ON_RESOLVE
FileSystemManager.resolveFile(java.io.File, java.lang.String)
.public static final CacheStrategy ON_CALL
public static CacheStrategy[] values()
for (CacheStrategy c : CacheStrategy.values()) System.out.println(c);
public static CacheStrategy 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 nullpublic String toString()
toString
in class Enum<CacheStrategy>
public String getName()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.