Class

kafka.utils

KafkaScheduler

Related Doc: package utils

Permalink

class KafkaScheduler extends Scheduler with Logging

A scheduler based on java.util.concurrent.ScheduledThreadPoolExecutor

It has a pool of kafka-scheduler- threads that do the actual work.

Annotations
@threadsafe()
Linear Supertypes
Logging, Scheduler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KafkaScheduler
  2. Logging
  3. Scheduler
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KafkaScheduler(threads: Int, threadNamePrefix: String = "kafka-scheduler-", daemon: Boolean = true)

    Permalink

    threads

    The number of threads in the thread pool

    threadNamePrefix

    The name to use for scheduler threads. This prefix will have a number appended to it.

    daemon

    If true the scheduler threads will be "daemon" threads and will not block jvm shutdown.

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. def isStarted: Boolean

    Permalink

    Check if the scheduler has been started

    Check if the scheduler has been started

    Definition Classes
    KafkaSchedulerScheduler
  25. var logIdent: String

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

    Permalink
    Definition Classes
    Logging
  27. val loggerName: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def schedule(name: String, fun: () ⇒ Unit, delay: Long, period: Long, unit: TimeUnit): Unit

    Permalink

    Schedule a task

    Schedule a task

    name

    The name of this task

    delay

    The amount of time to wait before the first execution

    period

    The period with which to execute the task. If < 0 the task will execute only once.

    unit

    The unit for the preceding times.

    Definition Classes
    KafkaSchedulerScheduler
  32. def shutdown(): Unit

    Permalink

    Shutdown this scheduler.

    Shutdown this scheduler. When this method is complete no more executions of background tasks will occur. This includes tasks scheduled with a delayed execution.

    Definition Classes
    KafkaSchedulerScheduler
  33. def startup(): Unit

    Permalink

    Initialize this scheduler so it is ready to accept scheduling of tasks

    Initialize this scheduler so it is ready to accept scheduling of tasks

    Definition Classes
    KafkaSchedulerScheduler
  34. def swallow(action: ⇒ Unit): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  41. val threadNamePrefix: String

    Permalink

    The name to use for scheduler threads.

    The name to use for scheduler threads. This prefix will have a number appended to it.

  42. val threads: Int

    Permalink

    The number of threads in the thread pool

  43. def toString(): String

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

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

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

    Permalink
    Definition Classes
    Logging
  47. final def wait(): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    Logging

Inherited from Logging

Inherited from Scheduler

Inherited from AnyRef

Inherited from Any

Ungrouped