Class/Object

backbone.javadsl

Backbone

Related Docs: object Backbone | package javadsl

Permalink

class Backbone extends AnyRef

Subscribing to certain kinds of events from various SNS topics and consume them via a Amazon SQS queue, and publish messages to an Amazon SNS topic.

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

Instance Constructors

  1. new Backbone(sqs: AmazonSQSAsync, sns: AmazonSNSAsync, system: ActorSystem)

    Permalink

    sqs

    AmazonSQSASync

    sns

    AmazonSNSAsync

    system

    implicit actor system

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 actorPublisher[T](settings: PublisherSettings, bufferSize: Int, overflowStrategy: OverflowStrategy, mw: MessageWriter[T]): ActorRef

    Permalink

    An actor reference that publishes received elements of type T to an AWS SNS topic.

    An actor reference that publishes received elements of type T to an AWS SNS topic.

    T

    type of messages to publish

    settings

    PublisherSettings configuring Backbone

    bufferSize

    size of the buffer

    overflowStrategy

    strategy to use if the buffer is full

    mw

    typeclass instance describing how to write a single message to a String

    returns

    an ActorRef that publishes received messages

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val asScala: scaladsl.Backbone

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def consume[T](settings: ConsumerSettings, format: MessageReader[T], f: Function[T, ProcessingResult]): CompletableFuture[Done]

    Permalink

    Consume elements of type T until an optional condition in ConsumerSettings is met.

    Consume elements of type T until an optional condition in ConsumerSettings is met.

    Creates a queue with the name provided in settings if it does not already exist. Subscribes the queue to all provided topics and modifies the AWS Policy to allow sending messages to the queue from the topics.

    T

    type of events to consume

    settings

    ConsumerSettings configuring Backbone

    format

    Format[T] typeclass instance describing how to decode SQS Message to T

    f

    function which processes objects of type T and returns a ProcessingResult

    returns

    a java future completing when the stream quits

  9. def consumeAsync[T](settings: ConsumerSettings, format: MessageReader[T], f: Function[T, CompletionStage[ProcessingResult]]): CompletableFuture[Done]

    Permalink

    Consume elements of type T until an optional condition in ConsumerSettings is met.

    Consume elements of type T until an optional condition in ConsumerSettings is met.

    Creates a queue with the name provided in settings if it does not already exist. Subscribes the queue to all provided topics and modifies the AWS Policy to allow sending messages to the queue from the topics.

    T

    type of events to consume

    settings

    ConsumerSettings configuring Backbone

    format

    Format[T] typeclass instance describing how to decode SQS Message to T

    f

    function which processes objects of type T and returns a Future[ProcessingResult]

    returns

    a java future completing when the stream quits

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

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def publishAsync[T](msgs: List[T], settings: PublisherSettings, mw: MessageWriter[T]): CompletableFuture[Done]

    Permalink

    Publish a list of elements of type T to an AWS SNS topic.

    Publish a list of elements of type T to an AWS SNS topic.

    T

    type of messages to publish

    msgs

    the messages to publish

    settings

    PublisherSettings configuring Backbone

    mw

    typeclass instance describing how to write a single message to a String

    returns

    a future completing when the stream quits

  20. def publishAsync[T](message: T, settings: PublisherSettings, mw: MessageWriter[T]): CompletableFuture[Done]

    Permalink

    Publish a single element of type T to an AWS SNS topic.

    Publish a single element of type T to an AWS SNS topic.

    T

    type of message to publish

    message

    the message to publish

    settings

    PublisherSettings configuring Backbone

    mw

    typeclass instance describing how to write the message to a String

    returns

    a future completing when the stream quits

  21. def publisherSink[T](settings: PublisherSettings, mw: MessageWriter[T]): Sink[T, CompletableFuture[Done]]

    Permalink

    Returns a sink that publishes received messages of type T to an AWS SNS topic.

    Returns a sink that publishes received messages of type T to an AWS SNS topic.

    T

    type of messages to publish

    settings

    PublisherSettings configuring Backbone

    mw

    typeclass instance describing how to write a single message to a String

    returns

    a Sink that publishes received messages

  22. val sns: AmazonSNSAsync

    Permalink

    AmazonSNSAsync

  23. val sqs: AmazonSQSAsync

    Permalink

    AmazonSQSASync

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

    Permalink
    Definition Classes
    AnyRef
  25. val system: ActorSystem

    Permalink

    implicit actor system

  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 AnyRef

Inherited from Any

Ungrouped