docs/javadoc/reference/com/facebook/cache/disk/DiskStorage.html
|
|
Summary: Nested Classes | Methods | [Expand All]
public interface
| com.facebook.cache.disk.DiskStorage |
| Known Indirect Subclasses
DefaultDiskStorage, DynamicDefaultDiskStorage
| DefaultDiskStorage | The default disk storage implementation. | | DynamicDefaultDiskStorage | A supplier of a DiskStorage concrete implementation. |
|
Storage for files in the cache. Responsible for maintaining state (count, size, watch file existence, reachability)
| Nested Classes |
|---|
| class |
| class |
| interface |
| interface |
| Public Methods |
|---|
| abstract void |
| Clear all contents of the storage |
| abstract boolean |
| Does a resource with this name exist? |
| abstract DiskStorage.DiskDumpInfo |
| abstract Collection<DiskStorage.Entry> |
| Get all entries currently in the storage |
| abstract BinaryResource |
| Get the resource with the specified name |
| abstract String |
| Get the storage's name, which should be unique |
| abstract DiskStorage.Inserter |
| Creates a temporary resource for writing content. |
| abstract boolean |
| is this storage enabled? |
| abstract boolean |
| is this storage external? |
| abstract void |
| abstract long |
| Remove the resource represented by the entry |
| abstract long |
| Remove the resource with specified id |
| abstract boolean |
| Does a resource with this name exist? If so, update the last-accessed time for the resource |
Clear all contents of the storage
| | IOException | | IOException | |
Does a resource with this name exist?
| resourceId | id of the resource | | debugInfo | helper object for debugging |
| IOException | |
| IOException | |
Get all entries currently in the storage
| IOException | |
Get the resource with the specified name
| resourceId | id of the resource | | debugInfo | helper object for debugging |
| IOException | for unexpected behavior. |
Get the storage's name, which should be unique
Creates a temporary resource for writing content. Split from commit() in order to allow concurrent writing of cache entries. This entry will not be available to cache clients until commit() is called passing in the resource returned from this method.
| resourceId | id of the resource | | debugInfo | helper object for debugging |
| IOException | on errors during this operation |
is this storage enabled?
is this storage external?
Remove the resource represented by the entry
| entry | entry of the resource to delete |
| IOException | |
Remove the resource with specified id
| IOException | |
Does a resource with this name exist? If so, update the last-accessed time for the resource
| resourceId | id of the resource | | debugInfo | helper object for debugging |
| IOException | |
+Generated by Doclava. +