Object

com.weightwatchers.reactive.kinesis.stream

Kinesis

Related Doc: package stream

Permalink

object Kinesis extends LazyLogging

Main entry point for creating a Kinesis source and sink.

Linear Supertypes
LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Kinesis
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def sink(producerName: String, inConfig: String = "kinesis", credentialsProvider: Option[AWSCredentialsProvider] = None)(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]]

    Permalink

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    The sink itself sends all events to an KinesisProducerActor which is configured from the system configuration for given producer name. Every message send needs to be acknowledged by the underlying producer actor.

    This sink signals back pressure, if more messages than configured in throttling conf are not acknowledged. If throttling is not configured, a default value (= 1000 messages) is applied.

    The sink produces a materialized value Future[Done], which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged. The future fails, if the sending an event fails or upstream has failed the stream.

    A minimal application conf file should look like this:

    kinesis {
       application-name = "SampleService"
       producer-name {
          stream-name = "sample-stream"
          akka.max-outstanding-requests = 100
       }
    }

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

    producerName

    the name of the producer in the system configuration.

    inConfig

    the configuration object that holds the producer config (usually kinesis).

    credentialsProvider

    the AWS credentials provider to use to connect.

    system

    the actor system.

    returns

    A sink that accepts ProducerEvents.

  17. def sink(kinesisConfig: Config, producerName: String, credentialsProvider: Option[AWSCredentialsProvider])(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]]

    Permalink

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    The sink itself sends all events to an KinesisProducerActor which is configured from the system configuration for given producer name. Every message send needs to be acknowledged by the underlying producer actor.

    This sink signals back pressure, if more messages than configured in throttling conf are not acknowledged. If throttling is not configured, a default value (= 1000 messages) is applied.

    The sink produces a materialized value Future[Done], which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged. The future fails, if the sending an event fails or upstream has failed the stream.

    kinesisConfig

    the configuration object that holds the producer config.

    producerName

    the name of the producer in the system configuration.

    credentialsProvider

    the AWS credentials provider to use to connect.

    system

    the actor system.

    returns

    A sink that accepts ProducerEvents.

  18. def sink(producerConf: ProducerConf)(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]]

    Permalink

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    The sink itself sends all events to an KinesisProducerActor which is configured with given config object. Every message send needs to be acknowledged by the underlying producer actor.

    This sink signals back pressure, if more messages than configured in throttling conf are not acknowledged. If throttling is not configured, a default value (= 1000 messages) is applied.

    The sink produces a materialized value Future[Done], which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged. The future fails, if the sending an event fails or upstream has failed the stream.

    producerConf

    the configuration to create KinesisProducerActor

    system

    the actor system.

    returns

    A sink that accepts ProducerEvents.

  19. def sink(props: ⇒ Props, maxOutStanding: Int)(implicit system: ActorSystem): Sink[ProducerEvent, Future[Done]]

    Permalink

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    Create a Sink that accepts ProducerEvents, which get published to Kinesis.

    The sink itself sends all events to an actor, which is created with the given Props. Every message send needs to be acknowledged by the underlying producer actor.

    This sink signals back pressure, if more than maxOutstanding messages are not acknowledged.

    The sink produces a materialized value Future[Done], which is finished if all messages of the stream are send to the producer actor _and_ got acknowledged. The future fails, if the sending an event fails or upstream has failed the stream.

    props

    the props to create a producer actor. This is a function to work around #48.

    maxOutStanding

    the number of messages to send to the actor unacknowledged before back pressure is applied.

    system

    the actor system.

    returns

    A sink that accepts ProducerEvents.

  20. def source(consumerName: String, createConsumer: (ConsumerConf, ActorRef) ⇒ ConsumerService, inConfig: String = "kinesis")(implicit system: ActorSystem): Source[CommittableEvent[ConsumerEvent], NotUsed]

    Permalink

    Create a source by using the actor system configuration, that provides KinesisEvents.

    Create a source by using the actor system configuration, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.

    A minimal application conf file should look like this:

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

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

    consumerName

    the name of the consumer in the application.conf.

    createConsumer

    factory function to create ConsumerService from eventProcessor ActorRef.

    inConfig

    the name of the sub-config for kinesis.

    system

    the actor system to use.

    returns

    A source of KinesisEvent objects.

  21. def source(consumerName: String)(implicit system: ActorSystem): Source[CommittableEvent[ConsumerEvent], NotUsed]

    Permalink

    Create a source by using the actor system configuration, that provides KinesisEvents.

    Create a source by using the actor system configuration, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.

    A minimal application conf file should look like this:

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

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

    consumerName

    the name of the consumer in the application.conf.

    system

    the actor system to use.

    returns

    A source of KinesisEvent objects.

  22. def source(consumerName: String, inConfig: String)(implicit system: ActorSystem): Source[CommittableEvent[ConsumerEvent], NotUsed]

    Permalink

    Create a source by using the actor system configuration, that provides KinesisEvents.

    Create a source by using the actor system configuration, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.

    A minimal application conf file should look like this:

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

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

    consumerName

    the name of the consumer in the application.conf.

    inConfig

    the name of the sub-config for kinesis.

    system

    the actor system to use.

    returns

    A source of KinesisEvent objects.

  23. def source(consumerConf: ConsumerConf)(implicit system: ActorSystem): Source[CommittableEvent[ConsumerEvent], NotUsed]

    Permalink

    Create a source, that provides KinesisEvents.

    Create a source, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.

    consumerConf

    the configuration to connect to Kinesis.

    system

    the actor system.

    returns

    A source of KinesisEvent objects.

  24. def source(consumerConf: ConsumerConf, createConsumer: (ActorRef) ⇒ ConsumerService)(implicit system: ActorSystem): Source[CommittableEvent[ConsumerEvent], NotUsed]

    Permalink

    Create a source, that provides KinesisEvents.

    Create a source, that provides KinesisEvents. Please note: every KinesisEvent has to be committed during the user flow! Uncommitted events will be retransmitted after a timeout.

    consumerConf

    the configuration to connect to Kinesis.

    createConsumer

    factory function to create ConsumerService from eventProcessor ActorRef.

    system

    the actor system.

    returns

    A source of KinesisEvent objects.

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped