class ThrottledHandler extends ProxyHandler

NOTE: ThrottledHandler emits plain-text messages regarding any throttling it does. This means that using it to wrap any logger which you expect to produce easily parseable, well-structured logs (as opposed to just plain text logs) will break your format. Specifically, DO NOT wrap Thrift Scribing loggers with ThrottledHandler.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThrottledHandler
  2. ProxyHandler
  3. Handler
  4. Handler
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ThrottledHandler(handler: Handler, duration: Duration, maxToDisplay: Int)

    handler

    Wrapped handler.

    duration

    Timespan to consider duplicates. After this amount of time, duplicate entries will be logged again.

    maxToDisplay

    Maximum duplicate log entries to pass before suppressing them.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def close(): Unit
    Definition Classes
    ProxyHandler → Handler
  7. val duration: Duration
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def flush(): Unit
    Definition Classes
    ProxyHandler → Handler
  12. def flushThrottled(): Unit

    Force printing any "swallowed" messages.

  13. val formatter: Formatter
    Definition Classes
    Handler
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getEncoding(): String
    Definition Classes
    ProxyHandler → Handler
  16. def getErrorManager(): ErrorManager
    Definition Classes
    ProxyHandler → Handler
  17. def getFilter(): Filter
    Definition Classes
    ProxyHandler → Handler
  18. def getFormatter(): java.util.logging.Formatter
    Definition Classes
    ProxyHandler → Handler
  19. def getLevel(): java.util.logging.Level
    Definition Classes
    ProxyHandler → Handler
  20. val handler: Handler
    Definition Classes
    ProxyHandler
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def isLoggable(record: java.util.logging.LogRecord): Boolean
    Definition Classes
    ProxyHandler → Handler
  24. val level: Option[Level]
    Definition Classes
    Handler
  25. val maxToDisplay: Int
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def publish(record: java.util.logging.LogRecord): Unit

    Log a message, with sprintf formatting, at the desired level, and attach an exception and stack trace.

    Log a message, with sprintf formatting, at the desired level, and attach an exception and stack trace.

    Definition Classes
    ThrottledHandlerProxyHandler → Handler
  30. def reportError(arg0: String, arg1: Exception, arg2: Int): Unit
    Attributes
    protected[java.util.logging]
    Definition Classes
    Handler
  31. def setEncoding(encoding: String): Unit
    Definition Classes
    ProxyHandler → Handler
  32. def setErrorManager(errorManager: ErrorManager): Unit
    Definition Classes
    ProxyHandler → Handler
  33. def setFilter(filter: Filter): Unit
    Definition Classes
    ProxyHandler → Handler
  34. def setFormatter(formatter: java.util.logging.Formatter): Unit
    Definition Classes
    ProxyHandler → Handler
  35. def setLevel(level: java.util.logging.Level): Unit
    Definition Classes
    ProxyHandler → Handler
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    Handler → AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def reset(): Unit
    Annotations
    @deprecated
    Deprecated

    (Since version 5.3.13) Use flushThrottled() instead

Inherited from ProxyHandler

Inherited from Handler

Inherited from AnyRef

Inherited from Any

Ungrouped