net.manub.embeddedkafka

EmbeddedKafka

object EmbeddedKafka extends EmbeddedKafkaSupport

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EmbeddedKafka
  2. EmbeddedKafkaSupport
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object aKafkaProducer

    Definition Classes
    EmbeddedKafkaSupport
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def consumeFirstMessageFrom[T](topic: String)(implicit config: EmbeddedKafkaConfig, decoder: Decoder[T]): T

    Consumes the first message available in a given topic, deserializing it as a String.

    Consumes the first message available in a given topic, deserializing it as a String.

    topic

    the topic to consume a message from

    config

    an implicit EmbeddedKafkaConfig

    decoder

    an implicit Decoder for the type T

    returns

    the first message consumed from the given topic, with a type T

    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( classOf[TimeoutException] ) @throws( classOf[KafkaUnavailableException] )
    Exceptions thrown
    KafkaUnavailableException

    if unable to connect to Kafka

    TimeoutException

    if unable to consume a message within 5 seconds

  10. def consumeFirstStringMessageFrom(topic: String)(implicit config: EmbeddedKafkaConfig): String

    Definition Classes
    EmbeddedKafkaSupport
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. implicit val executionContext: ExecutionContextExecutorService

    Definition Classes
    EmbeddedKafkaSupport
  14. val executorService: ExecutorService

    Definition Classes
    EmbeddedKafkaSupport
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isRunning: Boolean

    Returns whether the in memory Kafka and Zookeeper are running.

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def publishStringMessageToKafka(topic: String, message: String)(implicit config: EmbeddedKafkaConfig): Unit

    Publishes synchronously a message of type String to the running Kafka broker.

    Publishes synchronously a message of type String to the running Kafka broker.

    topic

    the topic to which publish the message (it will be auto-created)

    message

    the String message to publish

    config

    an implicit EmbeddedKafkaConfig

    Definition Classes
    EmbeddedKafkaSupport
    Exceptions thrown
    KafkaUnavailableException

    if unable to connect to Kafka

    See also

    EmbeddedKafka#publishToKafka

  24. def publishToKafka[T](topic: String, message: T)(implicit config: EmbeddedKafkaConfig, serializer: Serializer[T]): Unit

    Publishes synchronously a message to the running Kafka broker.

    Publishes synchronously a message to the running Kafka broker.

    topic

    the topic to which publish the message (it will be auto-created)

    message

    the message of type T to publish

    config

    an implicit EmbeddedKafkaConfig

    serializer

    an implicit Serializer for the type T

    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( classOf[KafkaUnavailableException] )
    Exceptions thrown
    KafkaUnavailableException

    if unable to connect to Kafka

  25. def start()(implicit config: EmbeddedKafkaConfig): Unit

    Starts a ZooKeeper instance and a Kafka broker in memory.

    Starts a ZooKeeper instance and a Kafka broker in memory.

    config

    an implicit EmbeddedKafkaConfig

  26. def startKafka(kafkaLogDir: Directory)(implicit config: EmbeddedKafkaConfig): Unit

  27. def startKafka(config: EmbeddedKafkaConfig, kafkaLogDir: Directory = Directory.makeTemp("kafka")): KafkaServer

    Definition Classes
    EmbeddedKafkaSupport
  28. def startZooKeeper(zkLogsDir: Directory)(implicit config: EmbeddedKafkaConfig): Unit

  29. def startZooKeeper(zooKeeperPort: Int, zkLogsDir: Directory = ...): ServerCnxnFactory

    Definition Classes
    EmbeddedKafkaSupport
  30. def stop(): Unit

    Stops the in memory ZooKeeper instance and Kafka broker.

  31. def stopKafka(): Unit

  32. def stopZooKeeper(): Unit

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withRunningKafka(body: ⇒ Unit)(implicit config: EmbeddedKafkaConfig): Unit

    Starts a ZooKeeper instance and a Kafka broker, then executes the body passed as a parameter.

    Starts a ZooKeeper instance and a Kafka broker, then executes the body passed as a parameter.

    body

    the function to execute

    config

    an implicit EmbeddedKafkaConfig

    Definition Classes
    EmbeddedKafkaSupport

Inherited from EmbeddedKafkaSupport

Inherited from AnyRef

Inherited from Any

Ungrouped