Package org.apache.commons.vfs
Class CacheStrategy
java.lang.Object
org.apache.commons.vfs.CacheStrategy
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
FieldsModifier and TypeFieldDescriptionstatic final CacheStrategy
Deal with cached data manually.static final CacheStrategy
Refresh the data every time you call a method on the fileObject.static final CacheStrategy
Refresh the data every time you request a file fromFileSystemManager.resolveFile(java.lang.String)
-
Method Summary
-
Field Details
-
MANUAL
Deal with cached data manually. CallFileObject.refresh()
to refresh the object data. -
ON_RESOLVE
Refresh the data every time you request a file fromFileSystemManager.resolveFile(java.lang.String)
-
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.
-
-
Method Details