object Response
- Source
- Response.scala
- Alphabetic
- By Inheritance
- Response
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class FetchResponse(data: Vector[(@@[String, TopicName], Vector[PartitionFetchResult])], throttleTime: Option[FiniteDuration]) extends Response with Product with Serializable
Response to spinoco.protocol.kafka.Request.FetchRequest
Response to spinoco.protocol.kafka.Request.FetchRequest
- data
Contains data of messages fetched
- throttleTime
If the request was throttled, this contains time how long it was throttled (since kafka 0.9.0)
- case class MetadataResponse(brokers: Vector[Broker], topics: Vector[TopicMetadata]) extends Response with Product with Serializable
Response to spinoco.protocol.kafka.Request.MetadataRequest
Response to spinoco.protocol.kafka.Request.MetadataRequest
- brokers
All brokers known
- topics
All topics known
- case class OffsetResponse(data: Vector[(@@[String, TopicName], Vector[PartitionOffsetResponse])]) extends Response with Product with Serializable
Response to the offset query.
Response to the offset query. Response for topic queries by client
- data
Data containing reposne to offset query
- case class PartitionFetchResult(partitionId: @@[Int, PartitionId], error: Option[ErrorType.Value], highWMOffset: @@[Long, Offset], messages: Vector[Message]) extends Product with Serializable
Contains fetch result for given partition
Contains fetch result for given partition
- partitionId
Id of partition
- error
If nonempty, fetch resulted in error
- highWMOffset
The offset at the end of the log for this partition. This can be used by the client to determine how many messages behind the end of the log they are.
- messages
Messages fetched.
- case class PartitionOffsetResponse(partitionId: @@[Int, PartitionId], error: Option[ErrorType.Value], timestamp: Date, offsets: Vector[@@[Long, Offset]]) extends Product with Serializable
Reposne data for Offset query for an partition
Reposne data for Offset query for an partition
- partitionId
Id of partition
- error
If nonempty, reposne failed
- timestamp
If query contained a timestamp, this will indicate offset for given timestamp. 0 in case of protocolV9
- offsets
Offsets of chunks for given partition
- case class PartitionProduceResult(error: Option[ErrorType.Value], offset: @@[Long, Offset], time: Option[Date]) extends Product with Serializable
Contains result of the produce for single partition
Contains result of the produce for single partition
- error
If nonempty, produce failed
- offset
Contains offset of first published message
- time
If LogAppendTime is used for the topic, this is the timestamp assigned by the broker to the message set. All the messages in the message set have the same timestamp. If CreateTime is used, this field is always None. The producer can assume the timestamp of the messages in the produce request has been accepted by the broker if there is no error code returned. Unit is milliseconds since beginning of the epoch (midnight Jan 1, 1970 (UTC)). Available since kafka 0.10.0
- case class ProduceResponse(data: Vector[(@@[String, TopicName], Vector[(@@[Int, PartitionId], PartitionProduceResult)])], throttleTime: Option[FiniteDuration]) extends Response with Product with Serializable
Response to spinoco.protocol.kafka.Request.ProduceRequest Contains map per topic and partition.
Response to spinoco.protocol.kafka.Request.ProduceRequest Contains map per topic and partition.
- data
Contains result of each produce response. Not guaranteed to be in same order as request.
- throttleTime
If the request was throttled, this contains time how long it was throttled (since kafka 0.9.0)
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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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()
- 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()