public class SuppressLog<T> extends Object
SuppressCache) which suppresses (certain) messages from the same member for a given time| Modifier and Type | Class and Description |
|---|---|
static class |
SuppressLog.Level |
| Modifier and Type | Field and Description |
|---|---|
protected SuppressCache<T> |
cache |
protected Log |
log |
protected String |
message_format |
protected String |
suppress_format |
| Constructor and Description |
|---|
SuppressLog(Log log,
String message_key,
String suppress_msg) |
| Modifier and Type | Method and Description |
|---|---|
SuppressCache<T> |
getCache() |
void |
log(SuppressLog.Level level,
T key,
long timeout,
Object... args)
Logs a message from a given member if is hasn't been logged for timeout ms
|
void |
removeExpired(long timeout) |
protected final Log log
protected final SuppressCache<T> cache
protected final String message_format
protected final String suppress_format
public SuppressCache<T> getCache()
public void log(SuppressLog.Level level, T key, long timeout, Object... args)
level - The level, either warn or errorkey - The key into the SuppressCachetimeout - The timeoutargs - The arguments to the message keypublic void removeExpired(long timeout)
Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.