Class CacheStrategy

java.lang.Object
org.apache.commons.vfs.CacheStrategy

public final class CacheStrategy extends 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 Details

    • MANUAL

      public static final CacheStrategy MANUAL
      Deal with cached data manually. Call FileObject.refresh() to refresh the object data.
    • ON_RESOLVE

      public static final CacheStrategy ON_RESOLVE
      Refresh the data every time you request a file from FileSystemManager.resolveFile(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.
  • Method Details

    • toString

      public String toString()
      Returns the name of the scope.
      Overrides:
      toString in class Object
    • getName

      public String getName()
      Returns the name of the scope.