|
|||||||||
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 | |
---|---|
java.lang.String |
getName()
Returns the name of the scope. |
java.lang.String |
toString()
Returns the name of the scope. |
static CacheStrategy |
valueOf(java.lang.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(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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<CacheStrategy>
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |