package kafka
- Source
- kafka.scala
- Alphabetic
- By Inheritance
- kafka
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
Broker
(nodeId: @@[Int, Broker], host: String, port: Int) extends Product with Serializable
Broker data
Broker data
- nodeId
Id of the broker
- host
Host (ip address) of the broker as defined in broker configuration
- port
Port the broker accepts new connections at
- sealed trait Message extends AnyRef
- sealed trait Offset extends AnyRef
- sealed trait PartitionId extends AnyRef
-
case class
PartitionMetadata
(error: Option[ErrorType.Value], id: @@[Int, PartitionId], leader: Option[@@[Int, Broker]], replicas: Vector[@@[Int, Broker]], isr: Vector[@@[Int, Broker]]) extends Product with Serializable
Single partition metadata
Single partition metadata
- error
If present, metadata query failed for this partition, or partition is in erroneous state
- id
Id of the partition
- leader
Elected leader
- replicas
All available replicas
- isr
All in sync replicas
-
sealed
trait
Request
extends AnyRef
Request for Kafka Broker
-
case class
RequestMessage
(version: ProtocolVersion.Value, correlationId: Int, clientId: String, request: Request) extends Product with Serializable
Request to kafka
Request to kafka
- version
Version of the broker
- correlationId
User specified correlation id to match request/response
- clientId
Id of the client for debugging purposes
- request
Actual request to make
-
trait
Response
extends AnyRef
Response for Kafka Broker
-
case class
ResponseMessage
(correlationId: Int, response: Response) extends Product with Serializable
Reponse from kafka broker
Reponse from kafka broker
- correlationId
Correlation id as presented in request
- response
Response received from kafka
- sealed trait TimeData extends AnyRef
-
case class
TopicMetadata
(error: Option[ErrorType.Value], name: @@[String, TopicName], partitions: Vector[PartitionMetadata]) extends Product with Serializable
Metadata for supplied topic
Metadata for supplied topic
- error
If present there was a failure to query metadata, or topic is in erroneous state
- name
Name of the topic
- partitions
metadata of the partitions
- sealed trait TopicName extends AnyRef
Value Members
- object ApiKey extends Enumeration
- object Compression extends Enumeration
-
object
ErrorType
extends Enumeration
Created by pach on 17/07/16.
- object Message
- object MessageVersion extends Enumeration
-
object
ProtocolVersion
extends Enumeration
Versions of kafka for protocol compatibility
- object Request
- object Response
- object TimeData