A cache to store PDMDefinitions by their id and version
- Author
- jfugitt
void com.latencybusters.pdm.PDMDefinitionCache.clear |
( |
| ) |
|
Clears the cache of all definitions and ids
boolean com.latencybusters.pdm.PDMDefinitionCache.containsKey |
( |
int |
definitionId | ) |
|
Checks to see if cache contains a definition with the matching definition id (regardless of version)
- Parameters
-
definitionId | the id of the definition to look up |
- Returns
- true if the cache contains this definition id
Referenced by com.latencybusters.pdm.PDMDefinitionCache.put().
boolean com.latencybusters.pdm.PDMDefinitionCache.containsKey |
( |
int |
definitionId, |
|
|
int |
versionMajor, |
|
|
int |
versionMinor |
|
) |
| |
Checks to see if cache contains a definition with the matching definition id, and version
- Parameters
-
definitionId | the id of the definition to look up |
versionMajor | the major version number of the definition to look up |
versionMinor | the minor version number of the definition to look up |
- Returns
- true if the cache contains this PDMDefinition
List<PDMDefinition> com.latencybusters.pdm.PDMDefinitionCache.get |
( |
int |
definitionId | ) |
|
PDMDefinition com.latencybusters.pdm.PDMDefinitionCache.get |
( |
int |
definitionId, |
|
|
int |
versionMajor, |
|
|
int |
versionMinor |
|
) |
| |
Gets the matching PDMDefinition including version
- Parameters
-
definitionId | the id of the definition to look up |
versionMajor | the major version number of the definition to look up |
versionMinor | the minor version number of the definition to look up |
- Returns
- the PDMDefinition
List<PDMDefinition> com.latencybusters.pdm.PDMDefinitionCache.remove |
( |
int |
definitionId | ) |
|
Removes any matching PDMDefinition from the cache with the corresponding id regardless of version
- Parameters
-
definitionId | the id of the definition to remove |
- Returns
- the removed PDMDefinition
PDMDefinition com.latencybusters.pdm.PDMDefinitionCache.remove |
( |
int |
definitionId, |
|
|
int |
versionMajor, |
|
|
int |
versionMinor |
|
) |
| |
Removes any matching PDMDefinition from the cache withthe corresponding id and version
- Parameters
-
definitionId | the id of the definition to remove |
versionMajor | the major version of the definition to remove |
versionMinor | the minor version of the definition to remove |
- Returns
- the PDMDefinition that was removed or null
The documentation for this class was generated from the following file: