|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cache
Cache for ontology terms. This cache provides temporary storage for the terms after they are retrieved, to minimize network calls (improves both efficiency as well as allows uninterrupted operation over short-term network outages). Contents of this cache have limited life time (time-to-live), which means that they are removed from the cache after this period of time, and will have to be retrieved from their original source (when they are needed; this is to allow the code to eventually notice any changes to the published terminology. The methods in this interface allow to control the cache (e.g., clear its contents, set time-to-live for each entry etc.)
| Method Summary | |
|---|---|
void |
clear()
Removes all entries from the cache. |
java.io.File |
getDirectory()
Gets the directory where the cache contents are stored. |
long |
getTimeToLive()
Gets the current time-to-live for entries in this cache; that is, the time after which an entry in this cache will be considered stale, and will have to be retrieved again from its source. |
void |
setTimeToLive(long timeToLive)
Sets the time-to-live for entries in this cache; that is, the time after which an entry in this cache will be considered stale, and will have to be retrieved again from its source. |
| Method Detail |
|---|
void clear()
long getTimeToLive()
void setTimeToLive(long timeToLive)
timeToLive - time-to-live for a cache entry in milliseconds (0 effectively disables the cache;
a negative value resets the time-to-live to the default value, as defined in the configuration).java.io.File getDirectory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||