Class/Object

org.locationtech.geomesa.kafka10.consumer

ConsumerRebalancer

Related Docs: object ConsumerRebalancer | package consumer

Permalink

class ConsumerRebalancer[K, V] extends IZkStateListener with IZkDataListener with IZkChildListener with LazyLogging

Manages rebalancing of consumers across jvms

Consumer info is kept in zookeeper - changes to partitions or number of consumers triggers a zookeeper listener, which causes a rebalance to be run.

During rebalance, each partition will be assigned to a single consumer - if there are more consumers than partitions, some consumers will not receive any data.

Linear Supertypes
LazyLogging, IZkChildListener, IZkDataListener, IZkStateListener, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConsumerRebalancer
  2. LazyLogging
  3. IZkChildListener
  4. IZkDataListener
  5. IZkStateListener
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConsumerRebalancer(consumer: KafkaConsumer[K, V], config: ConsumerConfig)

    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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def handleChildChange(parentPath: String, children: List[String]): Unit

    Permalink
    Definition Classes
    ConsumerRebalancer → IZkChildListener
    Annotations
    @throws( classOf[Exception] )
  11. def handleDataChange(dataPath: String, data: Any): Unit

    Permalink
    Definition Classes
    ConsumerRebalancer → IZkDataListener
    Annotations
    @throws( classOf[Exception] )
  12. def handleDataDeleted(dataPath: String): Unit

    Permalink
    Definition Classes
    ConsumerRebalancer → IZkDataListener
    Annotations
    @throws( classOf[Exception] )
  13. def handleNewSession(): Unit

    Permalink
    Definition Classes
    ConsumerRebalancer → IZkStateListener
    Annotations
    @throws( classOf[Exception] )
  14. def handleSessionEstablishmentError(throwable: Throwable): Unit

    Permalink
    Definition Classes
    ConsumerRebalancer → IZkStateListener
  15. def handleStateChanged(state: KeeperState): Unit

    Permalink
    Definition Classes
    ConsumerRebalancer → IZkStateListener
    Annotations
    @throws( classOf[Exception] )
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def shutdown(): Unit

    Permalink
  23. def start(numStreams: Int, offset: RequestedOffset): Unit

    Permalink

    Starts this rebalancer

  24. def syncedRebalance(): Unit

    Permalink
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LazyLogging

Inherited from IZkChildListener

Inherited from IZkDataListener

Inherited from IZkStateListener

Inherited from AnyRef

Inherited from Any

Ungrouped