Class

kafka.server

ClientQuotaManager

Related Doc: package server

Permalink

class ClientQuotaManager extends Logging

Helper class that records per-client metrics. It is also responsible for maintaining Quota usage statistics for all clients.

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClientQuotaManager
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClientQuotaManager(config: ClientQuotaManagerConfig, metrics: Metrics, apiKey: String, time: Time)

    Permalink

    config

    @ClientQuotaManagerConfig quota configs

    metrics

    @Metrics Metrics instance

    apiKey

    API Key for the request

    time

    @Time object to use

Type Members

  1. class ThrottledRequestReaper extends ShutdownableThread

    Permalink

    Reaper thread that triggers callbacks on all throttled requests

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def debug(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  7. def debug(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  8. def debug(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def error(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  12. def error(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  13. def error(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  14. def fatal(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  15. def fatal(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  16. def fatal(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. def info(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  21. def info(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  22. def info(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. var logIdent: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. lazy val logger: Logger

    Permalink
    Definition Classes
    Logging
  26. val loggerName: String

    Permalink
    Definition Classes
    Logging
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def quota(clientId: String): Quota

    Permalink

    Returns the quota for the specified clientId

  31. def recordAndMaybeThrottle(clientId: String, value: Int, callback: (Int) ⇒ Unit): Int

    Permalink

    Records that a clientId changed some metric being throttled (produced/consumed bytes, QPS etc.)

    Records that a clientId changed some metric being throttled (produced/consumed bytes, QPS etc.)

    clientId

    clientId that produced the data

    value

    amount of data written in bytes

    callback

    Callback function. This will be triggered immediately if quota is not violated. If there is a quota violation, this callback will be triggered after a delay

    returns

    Number of milliseconds to delay the response in case of Quota violation. Zero otherwise

  32. def shutdown(): Unit

    Permalink
  33. def swallow(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  34. def swallowDebug(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  35. def swallowError(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  36. def swallowInfo(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  37. def swallowTrace(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  38. def swallowWarn(action: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Logging
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. val throttledRequestReaper: ThrottledRequestReaper

    Permalink
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. def trace(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  43. def trace(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  44. def trace(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  45. def updateQuota(clientId: String, quota: Quota): Unit

    Permalink

    Overrides quotas per clientId

    Overrides quotas per clientId

    clientId

    client to override

    quota

    custom quota to apply

  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def warn(msg: ⇒ String, e: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  50. def warn(e: ⇒ Throwable): Any

    Permalink
    Definition Classes
    Logging
  51. def warn(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped