Package gov.nasa.worldwind.cache
Class BasicDataFileStore.DBEntry
- java.lang.Object
-
- gov.nasa.worldwind.cache.BasicDataFileStore.DBEntry
-
- All Implemented Interfaces:
Cacheable
- Enclosing class:
- BasicDataFileStore
protected static class BasicDataFileStore.DBEntry extends java.lang.Object implements Cacheable
Holds information for entries in the cache database.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
contentType
protected long
expiration
protected long
lastUpdateTime
protected static int
LOCAL
protected java.net.URL
localUrl
protected java.lang.String
name
protected static int
NONE
protected static int
PENDING
protected int
state
-
Constructor Summary
Constructors Constructor Description DBEntry(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSizeInBytes()
Retrieves the approximate size of this object in bytes.
-
-
-
Field Detail
-
NONE
protected static final int NONE
- See Also:
- Constant Field Values
-
PENDING
protected static final int PENDING
- See Also:
- Constant Field Values
-
LOCAL
protected static final int LOCAL
- See Also:
- Constant Field Values
-
name
protected java.lang.String name
-
contentType
protected java.lang.String contentType
-
expiration
protected long expiration
-
localUrl
protected java.net.URL localUrl
-
lastUpdateTime
protected long lastUpdateTime
-
state
protected int state
-
-
Method Detail
-
getSizeInBytes
public long getSizeInBytes()
Description copied from interface:Cacheable
Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.- Specified by:
getSizeInBytes
in interfaceCacheable
- Returns:
- this
Cacheable
object's size in bytes
-
-