|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CacheStrategy>
org.apache.commons.vfs2.CacheStrategy
public enum CacheStrategy
An enumerated type to deal with the various cache strategies.
| Enum Constant Summary | |
|---|---|
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.lang.String). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CacheStrategy MANUAL
FileObject.refresh() to refresh the object data.
public static final CacheStrategy ON_RESOLVE
FileSystemManager.resolveFile(java.lang.String).
public static final CacheStrategy ON_CALL
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<CacheStrategy>public String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||