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.
Value parameters
- sns
-
aws sns async client
- sqs
-
aws sqs async client
- system
-
actor system
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
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.
Type parameters
- T
-
type of messages to publish
Value parameters
- bufferSize
-
size of the buffer
- mw
-
typeclass instance describing how to write a single message to a String
- overflowStrategy
-
strategy to use if the buffer is full
- settings
-
PublisherSettings configuring Backbone
Attributes
- Returns
-
an ActorRef that publishes received messages
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.
Type parameters
- T
-
type of events to consume
Value parameters
- f
-
function which processes objects of type T and returns a ProcessingResult
- format
-
Format[T] typeclass instance describing how to decode SQS Message to T
- settings
-
ConsumerSettings configuring Backbone
Attributes
- Returns
-
a java future completing when the stream quits
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.
Type parameters
- T
-
type of events to consume
Value parameters
- f
-
function which processes objects of type T and returns a Future[ProcessingResult]
- format
-
Format[T] typeclass instance describing how to decode SQS Message to T
- settings
-
ConsumerSettings configuring Backbone
Attributes
- Returns
-
a java future completing when the stream quits
Publish a single element of type T to an AWS SNS topic.
Publish a single element of type T to an AWS SNS topic.
Type parameters
- T
-
type of message to publish
Value parameters
- message
-
the message to publish
- mw
-
typeclass instance describing how to write the message to a String
- settings
-
PublisherSettings configuring Backbone
Attributes
- Returns
-
a future completing when the stream quits
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.
Type parameters
- T
-
type of messages to publish
Value parameters
- msgs
-
the messages to publish
- mw
-
typeclass instance describing how to write a single message to a String
- settings
-
PublisherSettings configuring Backbone
Attributes
- Returns
-
a future completing when the stream quits
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.
Type parameters
- T
-
type of messages to publish
Value parameters
- mw
-
typeclass instance describing how to write a single message to a String
- settings
-
PublisherSettings configuring Backbone
Attributes
- Returns
-
a Sink that publishes received messages