Package org.jgroups.util
Class SuppressLog<T>
java.lang.Object
org.jgroups.util.SuppressLog<T>
Log (using
SuppressCache) which suppresses (certain) messages from the same member for a given time- Since:
- 3.2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SuppressCache<T> protected final Logprotected final Stringprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCache()voidlog(SuppressLog.Level level, T key, long timeout, Object... args) Logs a message from a given member if is hasn't been logged for timeout msvoidremoveExpired(long timeout)
-
Field Details
-
log
-
cache
-
message_format
-
suppress_format
-
-
Constructor Details
-
SuppressLog
-
-
Method Details
-
getCache
-
log
Logs a message from a given member if is hasn't been logged for timeout ms- Parameters:
level- The level, either warn or errorkey- The key into the SuppressCache, e.g. a member address or other topic ("thread_pool_full")timeout- The timeoutargs- The arguments to the message key
-
removeExpired
public void removeExpired(long timeout)
-