class QueueingHandler extends ProxyHandler

Proxy handler that queues log records and publishes them in another thread to a nested handler. Useful for when a handler may block.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueueingHandler
  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 QueueingHandler(handler: Handler)
  2. new QueueingHandler(handler: Handler, maxQueueSize: Int)
  3. new QueueingHandler(handler: Handler, maxQueueSize: Int, inferClassNames: Boolean)

    handler

    Wrapped handler that publishing is proxied to.

    maxQueueSize

    Maximum queue size. Records are sent to onOverflow when it is at capacity.

    inferClassNames

    com.twitter.logging.LogRecord and java.util.logging.LogRecord both attempt to infer the class and method name of the caller, but the inference needs the stack trace at the time that the record is logged. QueueingHandler breaks the inference because the log record is rendered out of band, so the stack trace is gone. Setting this option to true will cause the introspection to happen before the log record is queued, which means that the class name and method name will be available when the log record is passed to the underlying handler. This defaults to false because it loses some of the latency improvements of deferring logging by getting the stack trace synchronously.

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
    QueueingHandlerProxyHandler → Handler
  7. val dropLogNode: String
    Attributes
    protected
  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
    QueueingHandlerProxyHandler → Handler
  12. val formatter: Formatter
    Definition Classes
    Handler
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getEncoding(): String
    Definition Classes
    ProxyHandler → Handler
  15. def getErrorManager(): ErrorManager
    Definition Classes
    ProxyHandler → Handler
  16. def getFilter(): Filter
    Definition Classes
    ProxyHandler → Handler
  17. def getFormatter(): java.util.logging.Formatter
    Definition Classes
    ProxyHandler → Handler
  18. def getLevel(): java.util.logging.Level
    Definition Classes
    ProxyHandler → Handler
  19. val handler: Handler
    Definition Classes
    ProxyHandler
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isLoggable(record: java.util.logging.LogRecord): Boolean
    Definition Classes
    ProxyHandler → Handler
  23. val level: Option[Level]
    Definition Classes
    Handler
  24. val log: Logger
    Attributes
    protected
  25. val maxQueueSize: 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 onOverflow(record: java.util.logging.LogRecord): Unit

    Called when record dropped.

    Called when record dropped. Default is to log to console.

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

Inherited from ProxyHandler

Inherited from Handler

Inherited from AnyRef

Inherited from Any

Ungrouped