org.apache.commons.vfs2
public enum CacheStrategy extends java.lang.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.lang.String) . |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<CacheStrategy>
public java.lang.String getName()
Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.