org.apache.commons.vfs
Class CacheStrategy

java.lang.Object
  extended by 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: 804548 $ $Date: 2009-08-16 04:12:32 +0200 (So, 16. Aug 2009) $
Author:
Mario Ivankovits

Field Summary
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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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(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.

Method Detail

toString

public java.lang.String toString()
Returns the name of the scope.

Overrides:
toString in class java.lang.Object
Returns:
the name of the scope.

getName

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

Returns:
the name of the scope.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.