Package org.apache.commons.vfs
Class CacheStrategy
- java.lang.Object
-
- org.apache.commons.vfs.CacheStrategy
-
public final class CacheStrategy extends java.lang.Object
An enumerated type to deal with the various cache strategies.- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Mario Ivankovits
-
-
Field Summary
Fields Modifier and Type Field Description static CacheStrategy
MANUAL
Deal with cached data manually.static CacheStrategy
ON_CALL
Refresh the data every time you call a method on the fileObject.static CacheStrategy
ON_RESOLVE
Refresh the data every time you request a file fromFileSystemManager.resolveFile(java.lang.String)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the scope.java.lang.String
toString()
Returns the name of the scope.
-
-
-
Field Detail
-
MANUAL
public static final CacheStrategy MANUAL
Deal with cached data manually. CallFileObject.refresh()
to refresh the object data.
-
ON_RESOLVE
public static final CacheStrategy ON_RESOLVE
Refresh the data every time you request a file fromFileSystemManager.resolveFile(java.lang.String)
-
ON_CALL
public static final CacheStrategy ON_CALL
Refresh the data every time you call a method on the fileObject. You'll use this only if you really need the latest info as this setting is a major performance loss.
-
-