The file manager and file system objects must be thread safe, however I would not put my life on it. Some internal locking (especially around renaming) depends on the instance of the FileObject, so you should not use FileCache, which does not save them (i.e., the default cache is in order).
FileContent and streams should not be used at the same time (in fact, FileContent.close (), for example, only affects the streams of the current stream).
There are some resource leaks in this area (I hope everything is fixed in 2.1-SNAPSHOT).
eckes
source share