com.togethersoft.openapi.vfs
Interface VirtualFileVolume.CacheControl


public static interface VirtualFileVolume.CacheControl

VirtalFileVolume.CacheControl is used for controlling cache for
the current volume. Note that if more than one CacheControl is added
to the volume than the system check all of them and if one talks that cache is
not allowed, than cache system will be turned off.


Method Summary
 booleanneedsContentInputCache(VirtualFile file)
          Tests if content cache (data cache) shall be used for the volume, when system reads
file data.
 booleanneedsContentOutputCache(VirtualFile file)
          Tests if content cache (data cache) shall be used for the volume, when the system outputs
file data
 booleanneedsPropertyMapInputCache(VirtualFile file)
          Tests if loading properties shall be cached
 booleanneedsPropertyMapOutputCache(VirtualFile file)
          Tests if saving properties shall be cached
 booleanneedsStructureInputCache()
          Tests if structure shall be cached
 booleanneedsStructureOutputCache()
          Tests if structure shall be cached

Method Detail

needsContentInputCache

public boolean needsContentInputCache(VirtualFile file)
Tests if content cache (data cache) shall be used for the volume, when system reads
file data.

needsContentOutputCache

public boolean needsContentOutputCache(VirtualFile file)
Tests if content cache (data cache) shall be used for the volume, when the system outputs
file data

needsPropertyMapInputCache

public boolean needsPropertyMapInputCache(VirtualFile file)
Tests if loading properties shall be cached

needsPropertyMapOutputCache

public boolean needsPropertyMapOutputCache(VirtualFile file)
Tests if saving properties shall be cached

needsStructureInputCache

public boolean needsStructureInputCache()
Tests if structure shall be cached

needsStructureOutputCache

public boolean needsStructureOutputCache()
Tests if structure shall be cached