Class/Object

backbone.scaladsl

Backbone

Related Docs: object Backbone | package scaladsl

Permalink

class Backbone extends AmazonSqsOps with AmazonSnsOps

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
AmazonSnsOps, AmazonSqsOps, AmazonAsync, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Backbone
  2. AmazonSnsOps
  3. AmazonSqsOps
  4. AmazonAsync
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    sqs

    implicit aws sqs async client

    sns

    implicit aws sns async client

    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 = Int.MaxValue, overflowStrategy: OverflowStrategy = OverflowStrategy.dropHead)(implicit 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. def async[A <: AmazonWebServiceRequest, B](f: (AsyncHandler[A, B]) ⇒ Any): Future[B]

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def consume[T](settings: ConsumerSettings)(f: (T) ⇒ ProcessingResult)(implicit fo: MessageReader[T]): Future[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

    f

    function which processes objects of type T and returns a ProcessingResult

    fo

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

    returns

    a future completing when the stream quits

  9. def consumeAsync[T](settings: ConsumerSettings)(f: (T) ⇒ Future[ProcessingResult])(implicit fo: MessageReader[T]): Future[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

    f

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

    fo

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

    returns

    a future completing when the stream quits

  10. def createQueue(params: CreateQueueParams)(implicit ec: ExecutionContext): Future[QueueInformation]

    Permalink
    Definition Classes
    AmazonSqsOps
  11. def deleteMessage(queueUrl: String, receiptHandle: String)(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    AmazonSqsOps
  12. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getQueueArn(queueUrl: String)(implicit ec: ExecutionContext): Future[String]

    Permalink
    Definition Classes
    AmazonSqsOps
  17. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  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. def publishAsync[T](messages: List[T], settings: PublisherSettings)(implicit mw: MessageWriter[T]): Future[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

    messages

    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

  23. def publishAsync[T](message: T, settings: PublisherSettings)(implicit mw: MessageWriter[T]): Future[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

  24. def publisherSink[T](settings: PublisherSettings)(implicit mw: MessageWriter[T]): Sink[T, Future[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

  25. def savePolicy(queueUrl: String, policy: Policy)(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    AmazonSqsOps
  26. implicit val sns: AmazonSNSAsync

    Permalink

    implicit aws sns async client

    implicit aws sns async client

    Definition Classes
    Backbone → AmazonSnsOps
  27. implicit val sqs: AmazonSQSAsync

    Permalink

    implicit aws sqs async client

    implicit aws sqs async client

    Definition Classes
    Backbone → AmazonSqsOps
  28. def subscribe(queue: QueueInformation, topicArn: String)(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    AmazonSnsOps
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AmazonSnsOps

Inherited from AmazonSqsOps

Inherited from AmazonAsync

Inherited from AnyRef

Inherited from Any

Ungrouped