Class

com.weightwatchers.reactive.kinesis.stream

KinesisSourceGraph

Related Doc: package stream

Permalink

class KinesisSourceGraph extends GraphStage[SourceShape[CommittableEvent[ConsumerEvent]]] with LazyLogging

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.

Linear Supertypes
LazyLogging, GraphStage[SourceShape[CommittableEvent[ConsumerEvent]]], GraphStageWithMaterializedValue[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed], Graph[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KinesisSourceGraph
  2. LazyLogging
  3. GraphStage
  4. GraphStageWithMaterializedValue
  5. Graph
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KinesisSourceGraph(config: ConsumerConf, actorSystem: ActorSystem)

    Permalink

    Ctor that uses the KinesisConsumer as ConsumerService implementation.

  2. new KinesisSourceGraph(config: ConsumerConf, createConsumer: (ActorRef) ⇒ ConsumerService, actorSystem: ActorSystem)

    Permalink

    config

    the kinesis stream configuration.

    createConsumer

    function that creates a consumer service from the graph stage actor reference.

    actorSystem

    the actor system.

Type Members

  1. type Shape = SourceShape[CommittableEvent[ConsumerEvent]]

    Permalink
    Definition Classes
    Graph

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAttributes(attr: Attributes): Graph[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed]

    Permalink
    Definition Classes
    Graph
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def async: Graph[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed]

    Permalink
    Definition Classes
    Graph
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createLogic(inheritedAttributes: Attributes): GraphStageLogic

    Permalink
    Definition Classes
    KinesisSourceGraph → GraphStage
  9. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)

    Permalink
    Definition Classes
    GraphStage → GraphStageWithMaterializedValue
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def initialAttributes: Attributes

    Permalink
    Attributes
    protected
    Definition Classes
    GraphStageWithMaterializedValue
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  18. def named(name: String): Graph[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed]

    Permalink
    Definition Classes
    Graph
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val shape: SourceShape[CommittableEvent[ConsumerEvent]]

    Permalink
    Definition Classes
    KinesisSourceGraph → Graph
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def withAttributes(attr: Attributes): Graph[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed]

    Permalink
    Definition Classes
    GraphStageWithMaterializedValue → Graph

Inherited from LazyLogging

Inherited from GraphStage[SourceShape[CommittableEvent[ConsumerEvent]]]

Inherited from GraphStageWithMaterializedValue[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed]

Inherited from Graph[SourceShape[CommittableEvent[ConsumerEvent]], NotUsed]

Inherited from AnyRef

Inherited from Any

Ungrouped