public class DefaultAlarmCache extends Object implements AlarmCache
| Constructor and Description |
|---|
DefaultAlarmCache() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultInterval() |
void |
setDefaultInterval(int value)
Sets the default resend interval, for storing alarms unrelated to a specific channel,
in milliseconds.
|
boolean |
shouldResend(AlarmChannel channel,
String source,
String message)
This method returns true if the specified message with optional source has not been sent through
the specified channel very recently (meaning the resend interval for the channel has elapsed).
|
void |
shutdown()
Subclasses must override this, closing and freeing up any resources they use (connections, etc).
|
void |
store(AlarmChannel channel,
String source,
String message)
Stores the current date for the specified message and optional source, for the given channel.
|
String |
toString() |
public void setDefaultInterval(int value)
public int getDefaultInterval()
public void store(AlarmChannel channel, String source, String message)
AlarmCachestore in interface AlarmCachepublic boolean shouldResend(AlarmChannel channel, String source, String message)
AlarmCacheshouldResend in interface AlarmCachepublic void shutdown()
AlarmCacheshutdown in interface AlarmCache