|
UM .NET API
6.17
|
A cache to store PDMDefinitions by their id and version. More...
Public Member Functions | |
| virtual bool | containsKey (int definitionId) |
| Checks to see if cache contains a definition with the matching definition id (regardless of version) More... | |
| virtual bool | containsKey (int definitionId, int versionMajor, int versionMinor) |
| Checks to see if cache contains a definition with the matching definition id, and version. More... | |
| List< PDMDefinition > | get (int definitionId) |
| Gets any matching PDMDefinition (regardless of version) by its id. More... | |
| virtual PDMDefinition | get (int definitionId, int versionMajor, int versionMinor) |
| Gets the matching PDMDefinition including version. More... | |
| virtual PDMDefinition | put (PDMDefinition def) |
| Stores the PDMDefinition in the cache by its id, major version and minor version, unless the id is 0. More... | |
| List< PDMDefinition > | remove (int definitionId) |
| Removes any matching PDMDefinition from the cache with the corresponding id regardless of version. More... | |
| virtual PDMDefinition | remove (int definitionId, int versionMajor, int versionMinor) |
| Removes any matching PDMDefinition from the cache withthe corresponding id and version. More... | |
| virtual void | clear () |
| Clears the cache of all definitions and ids. | |
Public Attributes | |
| readonly object | cacheLock = new object() |
Properties | |
| static PDMDefinitionCache | Instance [get] |
| Used to get the Singleton instance of the cache. More... | |
A cache to store PDMDefinitions by their id and version.
|
virtual |
Checks to see if cache contains a definition with the matching definition id (regardless of version)
| definitionId | the id of the definition to look up |
References com.latencybusters.pdm.PDMDefinition.Id.
|
virtual |
Checks to see if cache contains a definition with the matching definition id, and version.
| 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 |
References com.latencybusters.pdm.PDMDefinition.Id, com.latencybusters.pdm.PDMDefinition.MsgVersMajor, and com.latencybusters.pdm.PDMDefinition.MsgVersMinor.
| List< PDMDefinition > com.latencybusters.pdm.PDMDefinitionCache.get | ( | int | definitionId | ) |
Gets any matching PDMDefinition (regardless of version) by its id.
| definitionId | the id of the definition to look up |
References com.latencybusters.pdm.PDMDefinition.Id.
Referenced by com.latencybusters.pdm.PDMMessage.getFields(), and com.latencybusters.pdm.PDMMessage.PDMMessage().
|
virtual |
Gets the matching PDMDefinition including version.
| 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 |
References com.latencybusters.pdm.PDMDefinition.Id, com.latencybusters.pdm.PDMDefinition.MsgVersMajor, and com.latencybusters.pdm.PDMDefinition.MsgVersMinor.
|
virtual |
Stores the PDMDefinition in the cache by its id, major version and minor version, unless the id is 0.
| def | the definition to store |
References com.latencybusters.pdm.PDMDefinition.Id, com.latencybusters.pdm.PDMDefinition.MsgVersMajor, and com.latencybusters.pdm.PDMDefinition.MsgVersMinor.
| List<PDMDefinition> com.latencybusters.pdm.PDMDefinitionCache.remove | ( | int | definitionId | ) |
Removes any matching PDMDefinition from the cache with the corresponding id regardless of version.
| definitionId | the id of the definition to remove |
|
virtual |
Removes any matching PDMDefinition from the cache withthe corresponding id and version.
| 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 |
|
staticget |
Used to get the Singleton instance of the cache.
Values: the PDMDefinitionCache instance
Referenced by com.latencybusters.pdm.PDMMessage.PDMMessage().