public class AlarmMemcachedClient extends Object implements AlarmCache
| Constructor and Description |
|---|
AlarmMemcachedClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Shuts down the memached client, by calling shutdown().
|
int |
getDefaultInterval() |
void |
init()
Creates the memcached client that will connect to the specified servers.
|
void |
setDefaultInterval(int value)
Sets the default resend interval, for storing alarms unrelated to a specific channel,
in seconds.
|
void |
setServers(List<String> value)
Sets the list of memcached servers to be used.
|
boolean |
shouldResend(AlarmChannel channel,
String source,
String message) |
void |
shutdown()
Shuts down the memached client.
|
void |
store(AlarmChannel channel,
String source,
String message) |
String |
toString() |
public void setDefaultInterval(int value)
public int getDefaultInterval()
public void setServers(List<String> value)
@PostConstruct public void init() throws IOException
IOException@PreDestroy public void disconnect()
public void store(AlarmChannel channel, String source, String message)
store in interface AlarmCachepublic boolean shouldResend(AlarmChannel channel, String source, String message)
shouldResend in interface AlarmCachepublic void shutdown()
shutdown in interface AlarmCache