class LockingKafkaContext extends KafkaContext
A KafkaContext that performs offset lookup/committing by synchronizing on the consumer, which out of the box is not thread safe. The source that provides this context also synchronizes on the same lock during polls.
- Alphabetic
- By Inheritance
- LockingKafkaContext
- KafkaContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-    new LockingKafkaContext(consumer: KafkaConsumer[Array[Byte], Array[Byte]], consumerGroup: String, lock: ReentrantLock)- consumer
- Kafka consumer to use. 
- lock
- Lock to synchronize on. 
 
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-    def commitSync(offsets: Map[TopicPartition, OffsetAndMetadata]): UnitCommits offsets to Kafka synchronously. Commits offsets to Kafka synchronously. - Definition Classes
- LockingKafkaContext → KafkaContext
 
-    def committed(topicPartitions: Set[TopicPartition]): Map[TopicPartition, Option[OffsetAndMetadata]]Retrieves the committed offsets for the given topic partitions from Kafka. Retrieves the committed offsets for the given topic partitions from Kafka. - Definition Classes
- LockingKafkaContext → KafkaContext
 
-    val consumerGroup: StringThe consumer group ID. The consumer group ID. - Definition Classes
- LockingKafkaContext → KafkaContext
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @native()
 
-    def offsetsForTimes(timestamps: Map[TopicPartition, Long]): Map[TopicPartition, Option[OffsetAndTimestamp]]Look up the offsets for the given partitions by timestamp. Look up the offsets for the given partitions by timestamp. - Definition Classes
- LockingKafkaContext → KafkaContext
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()