Packages

trait EmbeddedKafkaStreams extends EmbeddedKafkaStreamsSupport[EmbeddedKafkaConfig] with EmbeddedKafka

Helper trait for running Kafka Streams. Use .runStreams to execute your streams.

Linear Supertypes
EmbeddedKafka, EmbeddedKafkaOps[EmbeddedKafkaConfig, EmbeddedK], KafkaOps, ProducerOps[EmbeddedKafkaConfig], ConsumerOps[EmbeddedKafkaConfig], AdminOps[EmbeddedKafkaConfig], EmbeddedKafkaSupport[EmbeddedKafkaConfig], EmbeddedKafkaStreamsSupport[EmbeddedKafkaConfig], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EmbeddedKafkaStreams
  2. EmbeddedKafka
  3. EmbeddedKafkaOps
  4. KafkaOps
  5. ProducerOps
  6. ConsumerOps
  7. AdminOps
  8. EmbeddedKafkaSupport
  9. EmbeddedKafkaStreamsSupport
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val adminClientCloseTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    AdminOps
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val autoCreateTopics: Boolean
    Attributes
    protected
    Definition Classes
    KafkaOps
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def consumeFirstKeyedMessageFrom[K, V](topic: String, autoCommit: Boolean, timeout: Duration)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): (K, V)
    Definition Classes
    ConsumerOps
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[io.github.embeddedkafka.KafkaUnavailableException])
  9. def consumeFirstMessageFrom[V](topic: String, autoCommit: Boolean, timeout: Duration)(implicit config: EmbeddedKafkaConfig, valueDeserializer: Deserializer[V]): V
    Definition Classes
    ConsumerOps
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[io.github.embeddedkafka.KafkaUnavailableException])
  10. def consumeFirstStringMessageFrom(topic: String, autoCommit: Boolean, timeout: Duration)(implicit config: EmbeddedKafkaConfig): String
    Definition Classes
    ConsumerOps
  11. def consumeNumberKeyedMessagesFrom[K, V](topic: String, number: Int, autoCommit: Boolean, timeout: Duration)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): List[(K, V)]
    Definition Classes
    ConsumerOps
  12. def consumeNumberKeyedMessagesFromTopics[K, V](topics: Set[String], number: Int, autoCommit: Boolean, timeout: Duration, resetTimeoutOnEachMessage: Boolean)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): Map[String, List[(K, V)]]
    Definition Classes
    ConsumerOps
  13. def consumeNumberMessagesFrom[V](topic: String, number: Int, autoCommit: Boolean, timeout: Duration)(implicit config: EmbeddedKafkaConfig, valueDeserializer: Deserializer[V]): List[V]
    Definition Classes
    ConsumerOps
  14. def consumeNumberMessagesFromTopics[V](topics: Set[String], number: Int, autoCommit: Boolean, timeout: Duration, resetTimeoutOnEachMessage: Boolean)(implicit config: EmbeddedKafkaConfig, valueDeserializer: Deserializer[V]): Map[String, List[V]]
    Definition Classes
    ConsumerOps
  15. def consumeNumberStringMessagesFrom(topic: String, number: Int, autoCommit: Boolean, timeout: Duration)(implicit config: EmbeddedKafkaConfig): List[String]
    Definition Classes
    ConsumerOps
  16. val consumerPollingTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    ConsumerOps
  17. def createCustomTopic(topic: String, topicConfig: Map[String, String], partitions: Int, replicationFactor: Int)(implicit config: EmbeddedKafkaConfig): Try[Unit]
    Definition Classes
    AdminOps
  18. def deleteTopics(topics: List[String])(implicit config: EmbeddedKafkaConfig): Try[Unit]
    Definition Classes
    AdminOps
  19. def describeTopics(topics: Seq[String])(implicit config: EmbeddedKafkaConfig): Try[Map[String, TopicDescription]]
    Definition Classes
    AdminOps
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def listTopics()(implicit config: EmbeddedKafkaConfig): Try[Set[String]]
    Definition Classes
    AdminOps
  26. val logCleanerDedupeBufferSize: Int
    Attributes
    protected
    Definition Classes
    KafkaOps
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. val nodeId: Int
    Attributes
    protected
    Definition Classes
    KafkaOps
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  31. val producerPublishTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    ProducerOps
  32. def publishStringMessageToKafka(topic: String, message: String)(implicit config: EmbeddedKafkaConfig): Unit
    Definition Classes
    ProducerOps
  33. def publishToKafka[K, T](topic: String, messages: Seq[(K, T)])(implicit config: EmbeddedKafkaConfig, keySerializer: Serializer[K], serializer: Serializer[T]): Unit
    Definition Classes
    ProducerOps
    Annotations
    @throws(classOf[io.github.embeddedkafka.KafkaUnavailableException])
  34. def publishToKafka[K, T](topic: String, key: K, message: T)(implicit config: EmbeddedKafkaConfig, keySerializer: Serializer[K], serializer: Serializer[T]): Unit
    Definition Classes
    ProducerOps
    Annotations
    @throws(classOf[io.github.embeddedkafka.KafkaUnavailableException])
  35. def publishToKafka[T](producerRecord: ProducerRecord[String, T])(implicit config: EmbeddedKafkaConfig, serializer: Serializer[T]): Unit
    Definition Classes
    ProducerOps
    Annotations
    @throws(classOf[io.github.embeddedkafka.KafkaUnavailableException])
  36. def publishToKafka[T](topic: String, message: T)(implicit config: EmbeddedKafkaConfig, serializer: Serializer[T]): Unit
    Definition Classes
    ProducerOps
    Annotations
    @throws(classOf[io.github.embeddedkafka.KafkaUnavailableException])
  37. def runStreams[T](topicsToCreate: Seq[String], topology: Topology, extraConfig: Map[String, AnyRef] = Map.empty)(block: => T)(implicit config: EmbeddedKafkaConfig): T

    Execute Kafka streams and pass a block of code that can operate while the streams are active.

    Execute Kafka streams and pass a block of code that can operate while the streams are active. The code block can be used for publishing and consuming messages in Kafka.

    topicsToCreate

    the topics that should be created in Kafka before launching the streams.

    topology

    the streams topology that will be used to instantiate the streams with a default configuration (all state directories are different and in temp folders)

    extraConfig

    additional Kafka Streams configuration (overwrite existing keys in default config)

    block

    the code block that will executed while the streams are active. Once the block has been executed the streams will be closed.

    Definition Classes
    EmbeddedKafkaStreamsSupport
  38. def runStreamsOnFoundPort[T](config: EmbeddedKafkaConfig)(topicsToCreate: Seq[String], topology: Topology, extraConfig: Map[String, AnyRef] = Map.empty)(block: (EmbeddedKafkaConfig) => T): T

    Execute Kafka streams and pass a block of code that can operate while the streams are active.

    Execute Kafka streams and pass a block of code that can operate while the streams are active. The code block can be used for publishing and consuming messages in Kafka. The actual ports of the servers will be detected and inserted into a copied version of the EmbeddedKafkaConfig that gets passed to body. This is useful if you set any port to 0, which will listen on an arbitrary available port.

    config

    the user-defined EmbeddedKafkaConfig

    topicsToCreate

    the topics that should be created in Kafka before launching the streams.

    topology

    the streams topology that will be used to instantiate the streams with a default configuration (all state directories are different and in temp folders)

    extraConfig

    additional Kafka Streams configuration (overwrite existing keys in default config)

    block

    the code block that will executed while the streams are active, given an EmbeddedKafkaConfig with the actual ports the servers are running on. Once the block has been executed the streams will be closed.

    Definition Classes
    EmbeddedKafkaStreamsSupport
  39. val streamsConfig: EmbeddedStreamsConfigImpl
    Attributes
    protected[embeddedkafka]
    Definition Classes
    EmbeddedKafkaStreams → EmbeddedKafkaStreamsSupport
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. val topicCreationTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    AdminOps
  43. val topicDeletionTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    AdminOps
  44. val topicDescribeTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    AdminOps
  45. val topicListTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    AdminOps
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. def withAdminClient[T](body: (AdminClient) => T)(implicit config: EmbeddedKafkaConfig): Try[T]
    Attributes
    protected
    Definition Classes
    AdminOps
  50. def withConsumer[K, V, T](body: (KafkaConsumer[K, V]) => T)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): T
    Definition Classes
    ConsumerOps
  51. def withProducer[K, V, T](body: (KafkaProducer[K, V]) => T)(implicit config: EmbeddedKafkaConfig, keySerializer: Serializer[K], valueSerializer: Serializer[V]): T
    Definition Classes
    ProducerOps
  52. def withRunningKafka[T](body: => T)(implicit config: EmbeddedKafkaConfig): T
    Definition Classes
    EmbeddedKafkaSupport
  53. def withRunningKafkaOnFoundPort[T](config: EmbeddedKafkaConfig)(body: (EmbeddedKafkaConfig) => T): T
    Definition Classes
    EmbeddedKafkaSupport
  54. val zkConnectionTimeoutMs: Int
    Definition Classes
    AdminOps
  55. val zkSessionTimeoutMs: Int
    Definition Classes
    AdminOps

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from EmbeddedKafka

Inherited from EmbeddedKafkaOps[EmbeddedKafkaConfig, EmbeddedK]

Inherited from KafkaOps

Inherited from ProducerOps[EmbeddedKafkaConfig]

Inherited from ConsumerOps[EmbeddedKafkaConfig]

Inherited from AdminOps[EmbeddedKafkaConfig]

Inherited from EmbeddedKafkaSupport[EmbeddedKafkaConfig]

Inherited from EmbeddedKafkaStreamsSupport[EmbeddedKafkaConfig]

Inherited from AnyRef

Inherited from Any

Ungrouped