commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Commons Wiki] Trivial Update of "VfsCacheStrategy" by OrtwinGlueck
Date Tue, 30 Oct 2007 15:04:33 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for change notification.

The following page has been changed by OrtwinGlueck:
http://wiki.apache.org/jakarta-commons/VfsCacheStrategy

The comment on the change is:
typo and english cleanups

------------------------------------------------------------------------------
  
  Every time you call a method on the resolve file object the data will be refreshed with
the filesystem. This will give you the behaviour you might expect from a local file but also
might be a hughe performance loss as it will greatly increase the network load.
  
- You also can archive this cache strategy if you pack the file object in an {{{org.apache.commons.vfs.cache.OnCallRefreshFileObject}}}
+ You can also achieve this cache strategy by wrapping the file object in an {{{org.apache.commons.vfs.cache.OnCallRefreshFileObject}}}
  
  {{{
  FileObject fo = VFS.getManager().resolveFile("....");
  OnCallRefreshFileObject foc = new OnCallRefreshFileObject(fo);
  }}}
  
- the difference to the above is, that in the first case you will always get the same file
object instance and thus you can synchronize against it.
+ The difference to the above is, that in the first case you will always get the same file
object instance and thus you can synchronize on it.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message