Package

kafka

api

Permalink

package api

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait ApiVersion extends Ordered[ApiVersion]

    Permalink
  2. case class ControlledShutdownRequest(versionId: Short, correlationId: Int, clientId: Option[String], brokerId: Int) extends RequestOrResponse with Product with Serializable

    Permalink
  3. case class ControlledShutdownResponse(correlationId: Int, errorCode: Short = ErrorMapping.NoError, partitionsRemaining: Set[TopicAndPartition]) extends RequestOrResponse with Product with Serializable

    Permalink
  4. case class FetchRequest(versionId: Short = FetchRequest.CurrentVersion, correlationId: Int = FetchRequest.DefaultCorrelationId, clientId: String = ConsumerConfig.DefaultClientId, replicaId: Int = Request.OrdinaryConsumerId, maxWait: Int = FetchRequest.DefaultMaxWait, minBytes: Int = FetchRequest.DefaultMinBytes, requestInfo: Map[TopicAndPartition, PartitionFetchInfo]) extends RequestOrResponse with Product with Serializable

    Permalink
  5. class FetchRequestBuilder extends AnyRef

    Permalink
    Annotations
    @nonthreadsafe()
  6. case class FetchResponse(correlationId: Int, data: Map[TopicAndPartition, FetchResponsePartitionData], requestVersion: Int = 0, throttleTimeMs: Int = 0) extends RequestOrResponse with Product with Serializable

    Permalink
  7. case class FetchResponsePartitionData(error: Short = ErrorMapping.NoError, hw: Long = 1L, messages: MessageSet) extends Product with Serializable

    Permalink
  8. class FetchResponseSend extends Send

    Permalink
  9. case class GroupCoordinatorRequest(group: String, versionId: Short = ..., correlationId: Int = 0, clientId: String = ...) extends RequestOrResponse with Product with Serializable

    Permalink
  10. case class GroupCoordinatorResponse(coordinatorOpt: Option[BrokerEndPoint], errorCode: Short, correlationId: Int) extends RequestOrResponse with Product with Serializable

    Permalink
  11. case class LeaderAndIsr(leader: Int, leaderEpoch: Int, isr: List[Int], zkVersion: Int) extends Product with Serializable

    Permalink
  12. case class LeaderAndIsrRequest(versionId: Short, correlationId: Int, clientId: String, controllerId: Int, controllerEpoch: Int, partitionStateInfos: Map[(String, Int), PartitionStateInfo], leaders: Set[BrokerEndPoint]) extends RequestOrResponse with Product with Serializable

    Permalink
  13. case class LeaderAndIsrResponse(correlationId: Int, responseMap: Map[(String, Int), Short], errorCode: Short = ErrorMapping.NoError) extends RequestOrResponse with Product with Serializable

    Permalink
  14. case class OffsetCommitRequest(groupId: String, requestInfo: Map[TopicAndPartition, OffsetAndMetadata], versionId: Short = OffsetCommitRequest.CurrentVersion, correlationId: Int = 0, clientId: String = OffsetCommitRequest.DefaultClientId, groupGenerationId: Int = ..., memberId: String = ..., retentionMs: Long = ...) extends RequestOrResponse with Product with Serializable

    Permalink
  15. case class OffsetCommitResponse(commitStatus: Map[TopicAndPartition, Short], correlationId: Int = 0) extends RequestOrResponse with Product with Serializable

    Permalink
  16. case class OffsetFetchRequest(groupId: String, requestInfo: Seq[TopicAndPartition], versionId: Short = OffsetFetchRequest.CurrentVersion, correlationId: Int = 0, clientId: String = OffsetFetchRequest.DefaultClientId) extends RequestOrResponse with Product with Serializable

    Permalink
  17. case class OffsetFetchResponse(requestInfo: Map[TopicAndPartition, OffsetMetadataAndError], correlationId: Int = 0) extends RequestOrResponse with Product with Serializable

    Permalink
  18. case class OffsetRequest(requestInfo: Map[TopicAndPartition, PartitionOffsetRequestInfo], versionId: Short = OffsetRequest.CurrentVersion, correlationId: Int = 0, clientId: String = OffsetRequest.DefaultClientId, replicaId: Int = Request.OrdinaryConsumerId) extends RequestOrResponse with Product with Serializable

    Permalink
  19. case class OffsetResponse(correlationId: Int, partitionErrorAndOffsets: Map[TopicAndPartition, PartitionOffsetsResponse]) extends RequestOrResponse with Product with Serializable

    Permalink
  20. class PartitionDataSend extends Send

    Permalink
  21. case class PartitionFetchInfo(offset: Long, fetchSize: Int) extends Product with Serializable

    Permalink
  22. case class PartitionMetadata(partitionId: Int, leader: Option[BrokerEndPoint], replicas: Seq[BrokerEndPoint], isr: Seq[BrokerEndPoint] = Seq.empty, errorCode: Short = ErrorMapping.NoError) extends Logging with Product with Serializable

    Permalink
  23. case class PartitionOffsetRequestInfo(time: Long, maxNumOffsets: Int) extends Product with Serializable

    Permalink
  24. case class PartitionOffsetsResponse(error: Short, offsets: Seq[Long]) extends Product with Serializable

    Permalink
  25. case class PartitionStateInfo(leaderIsrAndControllerEpoch: LeaderIsrAndControllerEpoch, allReplicas: Set[Int]) extends Product with Serializable

    Permalink
  26. case class ProducerRequest(versionId: Short = ProducerRequest.CurrentVersion, correlationId: Int, clientId: String, requiredAcks: Short, ackTimeoutMs: Int, data: Map[TopicAndPartition, ByteBufferMessageSet]) extends RequestOrResponse with Product with Serializable

    Permalink
  27. case class ProducerResponse(correlationId: Int, status: Map[TopicAndPartition, ProducerResponseStatus], requestVersion: Int = 0, throttleTime: Int = 0) extends RequestOrResponse with Product with Serializable

    Permalink
  28. case class ProducerResponseStatus(error: Short, offset: Long) extends Product with Serializable

    Permalink
  29. abstract class RequestOrResponse extends Logging

    Permalink
  30. case class StopReplicaRequest(versionId: Short, correlationId: Int, clientId: String, controllerId: Int, controllerEpoch: Int, deletePartitions: Boolean, partitions: Set[TopicAndPartition]) extends RequestOrResponse with Product with Serializable

    Permalink
  31. case class StopReplicaResponse(correlationId: Int, responseMap: Map[TopicAndPartition, Short], errorCode: Short = ErrorMapping.NoError) extends RequestOrResponse with Product with Serializable

    Permalink
  32. case class TopicData(topic: String, partitionData: Map[Int, FetchResponsePartitionData]) extends Product with Serializable

    Permalink
  33. class TopicDataSend extends Send

    Permalink
  34. case class TopicMetadata(topic: String, partitionsMetadata: Seq[PartitionMetadata], errorCode: Short = ErrorMapping.NoError) extends Logging with Product with Serializable

    Permalink
  35. case class TopicMetadataRequest(versionId: Short, correlationId: Int, clientId: String, topics: Seq[String]) extends RequestOrResponse with Product with Serializable

    Permalink
  36. case class TopicMetadataResponse(brokers: Seq[BrokerEndPoint], topicsMetadata: Seq[TopicMetadata], correlationId: Int) extends RequestOrResponse with Product with Serializable

    Permalink
  37. case class UpdateMetadataRequest(versionId: Short, correlationId: Int, clientId: String, controllerId: Int, controllerEpoch: Int, partitionStateInfos: Map[TopicAndPartition, PartitionStateInfo], aliveBrokers: Set[Broker]) extends RequestOrResponse with Product with Serializable

    Permalink
  38. case class UpdateMetadataResponse(correlationId: Int, errorCode: Short = ErrorMapping.NoError) extends RequestOrResponse with Product with Serializable

    Permalink

Value Members

  1. object ApiUtils

    Permalink

    Helper functions specific to parsing or serializing requests and responses

  2. object ApiVersion

    Permalink

    This class contains the different Kafka versions.

    This class contains the different Kafka versions. Right now, we use them for upgrades - users can configure the version of the API brokers will use to communicate between themselves. This is only for inter-broker communications - when communicating with clients, the client decides on the API version.

    Note that the ID we initialize for each version is important. We consider a version newer than another, if it has a higher ID (to avoid depending on lexicographic order)

  3. object ControlledShutdownRequest extends Logging with Serializable

    Permalink
  4. object ControlledShutdownResponse extends Serializable

    Permalink
  5. object FetchRequest extends Serializable

    Permalink
  6. object FetchResponse extends Serializable

    Permalink
  7. object FetchResponsePartitionData extends Serializable

    Permalink
  8. object GroupCoordinatorRequest extends Serializable

    Permalink
  9. object GroupCoordinatorResponse extends Serializable

    Permalink
  10. object KAFKA_080 extends ApiVersion with Product with Serializable

    Permalink
  11. object KAFKA_081 extends ApiVersion with Product with Serializable

    Permalink
  12. object KAFKA_082 extends ApiVersion with Product with Serializable

    Permalink
  13. object KAFKA_090 extends ApiVersion with Product with Serializable

    Permalink
  14. object LeaderAndIsr extends Serializable

    Permalink
  15. object LeaderAndIsrRequest extends Serializable

    Permalink
  16. object LeaderAndIsrResponse extends Serializable

    Permalink
  17. object OffsetCommitRequest extends Logging with Serializable

    Permalink
  18. object OffsetCommitResponse extends Logging with Serializable

    Permalink
  19. object OffsetFetchRequest extends Logging with Serializable

    Permalink
  20. object OffsetFetchResponse extends Logging with Serializable

    Permalink
  21. object OffsetRequest extends Serializable

    Permalink
  22. object OffsetResponse extends Serializable

    Permalink
  23. object PartitionMetadata extends Serializable

    Permalink
  24. object PartitionStateInfo extends Serializable

    Permalink
  25. object ProducerRequest extends Serializable

    Permalink
  26. object ProducerResponse extends Serializable

    Permalink
  27. object Request

    Permalink
  28. object RequestKeys

    Permalink
  29. object StopReplicaRequest extends Logging with Serializable

    Permalink
  30. object StopReplicaResponse extends Serializable

    Permalink
  31. object TopicData extends Serializable

    Permalink
  32. object TopicMetadata extends Serializable

    Permalink
  33. object TopicMetadataRequest extends Logging with Serializable

    Permalink
  34. object TopicMetadataResponse extends Serializable

    Permalink
  35. object UpdateMetadataRequest extends Serializable

    Permalink
  36. object UpdateMetadataResponse extends Serializable

    Permalink

Ungrouped