RateLogger (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server

## Class RateLogger

- java.lang.Object
- - org.apache.zookeeper.server.RateLogger

-     public class RateLogger
      extends Object

  This logs the message once in the beginning and once every LOG_INTERVAL.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RateLogger(org.slf4j.Logger log)`
    `RateLogger(org.slf4j.Logger log, long interval)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `flush()`
    `void` | `rateLimitLog(String newMsg)`
    `void` | `rateLimitLog(String newMsg, String value)` In addition to the message, it also takes a value.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RateLogger

          public RateLogger(org.slf4j.Logger log)

    - #### RateLogger

          public RateLogger(org.slf4j.Logger log,
                            long interval)

  - ### Method Detail

    - #### flush

          public void flush()

    - #### rateLimitLog

          public void rateLimitLog(String newMsg)

    - #### rateLimitLog

          public void rateLimitLog(String newMsg,
                                   String value)

      In addition to the message, it also takes a value.

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.