diff --git a/kafka/api.html b/kafka/api.html index 0950780a5..474de75c7 100644 --- a/kafka/api.html +++ b/kafka/api.html @@ -632,6 +632,11 @@
LibrdkafkaLinkInfo explains how librdkafka was linked to the Go client
-const LibrdkafkaLinkInfo = "static glibc_linux from librdkafka-static-bundle-v1.5.2.tgz"
+ const LibrdkafkaLinkInfo = "static glibc_linux from librdkafka-static-bundle-v1.6.1.tgz"
OffsetBeginning represents the earliest offset (logical)
@@ -1339,7 +1359,7 @@const PartitionAny = int32(C.RD_KAFKA_PARTITION_UA)
type AlterOperation int
func (e AssignedPartitions) String() string
type ConfigMap map[string]ConfigValue
type ConfigSource int
type ConfigValue interface{}
func (c *Consumer) Assign(partitions []TopicPartition) (err error)
Assign an atomic set of partitions to consume. -This replaces the current assignment. +
++ The .Offset field of each TopicPartition must either be set to an absolute +starting offset (>= 0), or one of the logical offsets (`kafka.OffsetEnd` etc), +but should typically be set to `kafka.OffsetStored` to have the consumer +use the committed offset as a start position, with a fallback to +`auto.offset.reset` if there is no committed offset. +
++ This replaces the current assignment.
Assignment returns the current partition assignments
+func (c *Consumer) AssignmentLost() bool+
+ AssignmentLost returns true if current partition assignment has been lost. +This method is only applicable for use with a subscribing consumer when +handling a rebalance event or callback. +Partitions that have been lost may already be owned by other members in the +group and therefore commiting offsets, for example, may fail. +
func (c *Consumer) GetRebalanceProtocol() string+
+ GetRebalanceProtocol returns the current consumer group rebalance protocol, +which is either "EAGER" or "COOPERATIVE". +If the rebalance protocol is not known in the current state an empty string +is returned. +Should typically only be called during rebalancing.
func (c *Consumer) IncrementalAssign(partitions []TopicPartition) (err error)+
+ IncrementalAssign adds the specified partitions to the current set of +partitions to consume. +
++ The .Offset field of each TopicPartition must either be set to an absolute +starting offset (>= 0), or one of the logical offsets (`kafka.OffsetEnd` etc), +but should typically be set to `kafka.OffsetStored` to have the consumer +use the committed offset as a start position, with a fallback to +`auto.offset.reset` if there is no committed offset. +
++ The new partitions must not be part of the current assignment. +
+func (c *Consumer) IncrementalUnassign(partitions []TopicPartition) (err error)+
+ IncrementalUnassign removes the specified partitions from the current set of +partitions to consume. +
++ The .Offset field of the TopicPartition is ignored. +
++ The removed partitions must be part of the current assignment. +