Class SuppressLog<T>

java.lang.Object
org.jgroups.util.SuppressLog<T>

public class SuppressLog<T> extends Object
Log (using SuppressCache) which suppresses (certain) messages from the same member for a given time
Since:
3.2
  • Field Details

    • log

      protected final Log log
    • cache

      protected final SuppressCache<T> cache
    • message_format

      protected final String message_format
    • suppress_format

      protected final String suppress_format
  • Constructor Details

    • SuppressLog

      public SuppressLog(Log log, String message_key)
  • Method Details

    • getCache

      public SuppressCache<T> getCache()
    • log

      public 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
      Parameters:
      level - The level, either warn or error
      key - The key into the SuppressCache, e.g. a member address or other topic ("thread_pool_full")
      timeout - The timeout
      args - The arguments to the message key
    • removeExpired

      public void removeExpired(long timeout)