Class

kafka.server

DelayedOperationPurgatory

Related Doc: package server

Permalink

class DelayedOperationPurgatory[T <: DelayedOperation] extends Logging with KafkaMetricsGroup

A helper purgatory class for bookkeeping delayed operations with a timeout, and expiring timed out operations.

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

Instance Constructors

  1. new DelayedOperationPurgatory(purgatoryName: String, brokerId: Int = 0, purgeInterval: Int = 1000)

    Permalink

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 checkAndComplete(key: Any): Int

    Permalink

    Check if some some delayed operations can be completed with the given watch key, and if yes complete them.

    Check if some some delayed operations can be completed with the given watch key, and if yes complete them.

    returns

    the number of completed operations during this process

  6. def clone(): AnyRef

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

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

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

    Permalink
    Definition Classes
    Logging
  10. def delayed(): Int

    Permalink

    Return the number of delayed operations in the expiry queue

  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  26. var logIdent: String

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

    Permalink
    Definition Classes
    Logging
  28. val loggerName: String

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

    Permalink
    Definition Classes
    AnyRef
  30. def newGauge[T](name: String, metric: Gauge[T], tags: Map[String, String] = Map.empty): Gauge[T]

    Permalink
    Definition Classes
    KafkaMetricsGroup
  31. def newHistogram(name: String, biased: Boolean = true, tags: Map[String, String] = Map.empty): Histogram

    Permalink
    Definition Classes
    KafkaMetricsGroup
  32. def newMeter(name: String, eventType: String, timeUnit: TimeUnit, tags: Map[String, String] = Map.empty): Meter

    Permalink
    Definition Classes
    KafkaMetricsGroup
  33. def newTimer(name: String, durationUnit: TimeUnit, rateUnit: TimeUnit, tags: Map[String, String] = Map.empty): Timer

    Permalink
    Definition Classes
    KafkaMetricsGroup
  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. def removeMetric(name: String, tags: Map[String, String] = Map.empty): Unit

    Permalink
    Definition Classes
    KafkaMetricsGroup
  37. def shutdown(): Unit

    Permalink

    Shutdown the expire reaper thread

  38. def swallow(action: ⇒ Unit): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  45. def toString(): String

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

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

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

    Permalink
    Definition Classes
    Logging
  49. def tryCompleteElseWatch(operation: T, watchKeys: Seq[Any]): Boolean

    Permalink

    Check if the operation can be completed, if not watch it based on the given watch keys

    Check if the operation can be completed, if not watch it based on the given watch keys

    Note that a delayed operation can be watched on multiple keys. It is possible that an operation is completed after it has been added to the watch list for some, but not all of the keys. In this case, the operation is considered completed and won't be added to the watch list of the remaining keys. The expiration reaper thread will remove this operation from any watcher list in which the operation exists.

    operation

    the delayed operation to be checked

    watchKeys

    keys for bookkeeping the operation

    returns

    true iff the delayed operations can be completed by the caller

  50. final def wait(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    Logging
  56. def watched(): Int

    Permalink

    Return the total size of watch lists the purgatory.

    Return the total size of watch lists the purgatory. Since an operation may be watched on multiple lists, and some of its watched entries may still be in the watch lists even when it has been completed, this number may be larger than the number of real operations watched

Inherited from KafkaMetricsGroup

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped