Package

com.weightwatchers.reactive.kinesis

stream

Permalink

package stream

Visibility
  1. Public
  2. All

Type Members

  1. trait CommittableEvent[+A] extends AnyRef

    Permalink

    The CommittableEvent is passed through the stream.

    The CommittableEvent is passed through the stream. Every event has to be committed explicitly.

  2. class KinesisSinkGraphStage extends GraphStageWithMaterializedValue[SinkShape[ProducerEvent], Future[Done]] with LazyLogging

    Permalink

    A KinesisSinkGraph will attach to a kinesis stream with the provided configuration and constitute a Sink[ProducerEvent, Future[Done].

    A KinesisSinkGraph will attach to a kinesis stream with the provided configuration and constitute a Sink[ProducerEvent, Future[Done]. This graph stage uses a producer actor to publish events with acknowledgements.

  3. class KinesisSourceGraphStage extends GraphStage[SourceShape[CommittableEvent[ConsumerEvent]]] with LazyLogging

    Permalink

    A KinesisSourceGraph will attach to a kinesis stream with the provided configuration and constitute a Source[KinesisEvent, NotUsed].

    A KinesisSourceGraph will attach to a kinesis stream with the provided configuration and constitute a Source[KinesisEvent, NotUsed]. Usage:

    val config = ConfigFactory.load()
    val consumerConfig = ConsumerConf(config.getConfig("kinesis"), "some-consumer")
    val source = Source.fromGraph(new KinesisSourceGraph(consumerConf, system))

    Assuming a configuration file like this:

    kinesis {
       application-name = "SampleService"
       some-consumer {
          stream-name = "sample-consumer"
       }
    }

    See reference.conf for a list of all available config options.

Value Members

  1. object Kinesis extends LazyLogging

    Permalink

    Main entry point for creating a Kinesis source and sink.

Ungrouped