Packages

object EmbeddedKafkaStreams extends EmbeddedKafkaStreams

Linear Supertypes
EmbeddedKafkaStreams, EmbeddedKafka, EmbeddedKafkaOps[EmbeddedKafkaConfig, EmbeddedK], KafkaOps, ZooKeeperOps, ProducerOps[EmbeddedKafkaConfig], ConsumerOps[EmbeddedKafkaConfig], AdminOps[EmbeddedKafkaConfig], EmbeddedKafkaSupport[EmbeddedKafkaConfig], EmbeddedKafkaStreamsSupport[EmbeddedKafkaConfig], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EmbeddedKafkaStreams
  2. EmbeddedKafkaStreams
  3. EmbeddedKafka
  4. EmbeddedKafkaOps
  5. KafkaOps
  6. ZooKeeperOps
  7. ProducerOps
  8. ConsumerOps
  9. AdminOps
  10. EmbeddedKafkaSupport
  11. EmbeddedKafkaStreamsSupport
  12. AnyRef
  13. 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. val brokerId: Short
    Attributes
    protected
    Definition Classes
    KafkaOps
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def consumeFirstKeyedMessageFrom[K, V](topic: String, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): (K, V)
    Definition Classes
    ConsumerOps
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[net.manub.embeddedkafka.KafkaUnavailableException])
  10. def consumeFirstMessageFrom[V](topic: String, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfig, valueDeserializer: Deserializer[V]): V
    Definition Classes
    ConsumerOps
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[net.manub.embeddedkafka.KafkaUnavailableException])
  11. def consumeFirstStringMessageFrom(topic: String, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfig): String
    Definition Classes
    ConsumerOps
  12. def consumeNumberKeyedMessagesFrom[K, V](topic: String, number: Int, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): List[(K, V)]
    Definition Classes
    ConsumerOps
  13. 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
  14. def consumeNumberMessagesFrom[V](topic: String, number: Int, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfig, valueDeserializer: Deserializer[V]): List[V]
    Definition Classes
    ConsumerOps
  15. 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
  16. def consumeNumberStringMessagesFrom(topic: String, number: Int, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfig): List[String]
    Definition Classes
    ConsumerOps
  17. val consumerPollingTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    ConsumerOps
  18. def createCustomTopic(topic: String, topicConfig: Map[String, String], partitions: Int, replicationFactor: Int)(implicit config: EmbeddedKafkaConfig): Unit
    Definition Classes
    AdminOps
  19. def deleteTopics(topics: List[String])(implicit config: EmbeddedKafkaConfig): Try[Unit]
    Definition Classes
    AdminOps
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. val logCleanerDedupeBufferSize: Int
    Attributes
    protected
    Definition Classes
    KafkaOps
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. val producerPublishTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    ProducerOps
  31. def publishStringMessageToKafka(topic: String, message: String)(implicit config: EmbeddedKafkaConfig): Unit
    Definition Classes
    ProducerOps
  32. 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[net.manub.embeddedkafka.KafkaUnavailableException])
  33. 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[net.manub.embeddedkafka.KafkaUnavailableException])
  34. def publishToKafka[T](producerRecord: ProducerRecord[String, T])(implicit config: EmbeddedKafkaConfig, serializer: Serializer[T]): Unit
    Definition Classes
    ProducerOps
    Annotations
    @throws(classOf[net.manub.embeddedkafka.KafkaUnavailableException])
  35. def publishToKafka[T](topic: String, message: T)(implicit config: EmbeddedKafkaConfig, serializer: Serializer[T]): Unit
    Definition Classes
    ProducerOps
    Annotations
    @throws(classOf[net.manub.embeddedkafka.KafkaUnavailableException])
  36. 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 KafkaStreams 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
  37. def startKafka(config: EmbeddedKafkaConfig, kafkaLogDir: Path): KafkaServer
    Definition Classes
    KafkaOps
  38. def startZooKeeper(zooKeeperPort: Int, zkLogsDir: Path): ServerCnxnFactory
    Definition Classes
    ZooKeeperOps
  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. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. def withAdminClient[T](body: (AdminClient) => T)(implicit config: EmbeddedKafkaConfig): Try[T]
    Attributes
    protected
    Definition Classes
    AdminOps
  48. def withConsumer[K, V, T](body: (KafkaConsumer[K, V]) => T)(implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): T
    Definition Classes
    ConsumerOps
  49. def withProducer[K, V, T](body: (KafkaProducer[K, V]) => T)(implicit config: EmbeddedKafkaConfig, keySerializer: Serializer[K], valueSerializer: Serializer[V]): T
    Definition Classes
    ProducerOps
  50. def withRunningKafka[T](body: => T)(implicit config: EmbeddedKafkaConfig): T
    Definition Classes
    EmbeddedKafkaSupport
  51. def withRunningKafkaOnFoundPort[T](config: EmbeddedKafkaConfig)(body: (EmbeddedKafkaConfig) => T): T
    Definition Classes
    EmbeddedKafkaSupport
  52. val zkConnectionTimeout: FiniteDuration
    Attributes
    protected
    Definition Classes
    KafkaOps
  53. val zkConnectionTimeoutMs: Int
    Definition Classes
    AdminOps
  54. val zkSessionTimeoutMs: Int
    Definition Classes
    AdminOps

Deprecated Value Members

  1. def kafkaConsumer[K, T](implicit config: EmbeddedKafkaConfig, keyDeserializer: Deserializer[K], deserializer: Deserializer[T]): KafkaConsumer[K, T]
    Definition Classes
    ConsumerOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.1) Direct usage of KafkaConsumer is discouraged, see loan method withConsumer

  2. def kafkaProducer[K, T](topic: String, key: K, message: T)(implicit config: EmbeddedKafkaConfig, keySerializer: Serializer[K], serializer: Serializer[T]): KafkaProducer[K, T]
    Definition Classes
    ProducerOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.1) Direct usage of KafkaProducer is discouraged, see loan method withProducer

Inherited from EmbeddedKafkaStreams

Inherited from EmbeddedKafka

Inherited from EmbeddedKafkaOps[EmbeddedKafkaConfig, EmbeddedK]

Inherited from KafkaOps

Inherited from ZooKeeperOps

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