package kafka
- Source
- kafka.scala
- Alphabetic
- By Inheritance
- kafka
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait KafkaClient[F[_]] extends AnyRef
Client that binds to kafka broker.
Client that binds to kafka broker. Usually application need only one client.
Client lives until the emitted process is interrupted, or fails.
- trait Logger[F[_]] extends AnyRef
Logger trait allowing to attach any Logging framework required.
Logger trait allowing to attach any Logging framework required. Jdk Instance is available
- type TopicAndPartition = (@@[String, TopicName], @@[Int, PartitionId])
- case class TopicMessage(offset: @@[Long, Offset], key: ByteVector, message: ByteVector, tail: @@[Long, Offset]) extends Product with Serializable
Message read from the topic.
Message read from the topic.
- offset
Offset of the message
- key
Key of the message
- message
Message content
- tail
Offset of last message in the topic
Value Members
- val HeadOffset: @@[Long, Offset]
Starting from this offset will assure that we will read always from very oldest message (head) kept in topic *
- val TailOffset: @@[Long, Offset]
Starting from this offset will assure we starting with most recent messages written to topic (tail) *
- def broker(host: String, port: Int): BrokerAddress
syntax helper to construct broker address *
- def offset(offset: Long): @@[Long, Offset]
types the offset in the topic*
- def partition(id: Int): @@[Int, PartitionId]
types correctly id of the partition*
- def topic(name: String): @@[String, TopicName]
types correctly name of the topic *
- object KafkaClient
- object Logger