|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlarmCache
The AlarmSender uses a cache to avoid resending the same message very frequently. This interface allows for different implementations of the caching mechanism.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void store(AlarmChannel channel, String source, String message)
boolean shouldResend(AlarmChannel channel, String source, String message)
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |