public interface AlarmCache
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close and deallocate the resources.
|
CategoryActiveList |
getActiveListReference(java.lang.Integer identifier)
Returns a reference to the active list for a category.
|
Alarm |
getCopy(java.lang.String identifier)
Returns a clone of the cached alarm.
|
Alarm |
getReference(java.lang.String identifier)
Returns a reference to the cached alarm.
|
void |
initializeAlarmCache(java.util.Map alarms,
java.util.Map activeLists)
Initializes the alarm cache.
|
void |
invalidate(java.lang.String identifier)
Invalidate the cached object.
|
void |
put(Alarm alarm)
Puts an object in the cache.
|
void |
removeActiveList(java.lang.Integer identifier)
Remove the active list associated with the given category id.
|
void |
replace(Alarm alarm)
Puts alarm in the cache.
|
void initializeAlarmCache(java.util.Map alarms,
java.util.Map activeLists)
Alarm getCopy(java.lang.String identifier) throws AlarmCacheException
identifier - the alarm private identifierjava.lang.Exception - if the operation can not be performedAlarmCacheExceptionAlarm getReference(java.lang.String identifier) throws AlarmCacheException
identifier - the alarm private identifierAlarmCacheException - if the operation cannot be performedvoid replace(Alarm alarm) throws AlarmCacheException
alarm - object to put in cacheAlarmCacheException - if the operation cannot be performed. However, the lock is released.void put(Alarm alarm) throws AlarmCacheException
alarm - the new alarm objectjava.lang.Exception - if the operation can not be performedAlarmCacheExceptionvoid invalidate(java.lang.String identifier)
throws AlarmCacheException
identifier - the alarm private identifierjava.lang.Exception - if the operation can not be performedAlarmCacheExceptionCategoryActiveList getActiveListReference(java.lang.Integer identifier) throws AlarmCacheException
identifier - the active list private identifierjava.lang.Exception - if the operation can not be performedAlarmCacheExceptionvoid close()
void removeActiveList(java.lang.Integer identifier)
throws AlarmCacheException
identifier - the id of the active list to destroy (=category id)java.lang.Exception - if the operation cannot be performedAlarmCacheException