|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.solab.alarms.DefaultAlarmCache
public class DefaultAlarmCache
This is the default cache, which uses a map to store the last date a message was sent for a given channel/msg/source cobination.
| Constructor Summary | |
|---|---|
DefaultAlarmCache()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAlarmCache()
| Method Detail |
|---|
public void setDefaultInterval(int value)
public int getDefaultInterval()
public void store(AlarmChannel channel,
String source,
String message)
AlarmCache
store in interface AlarmCache
public boolean shouldResend(AlarmChannel channel,
String source,
String message)
AlarmCache
shouldResend in interface AlarmCachepublic String toString()
toString in class Objectpublic void shutdown()
AlarmCache
shutdown in interface AlarmCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||