DynamoDb

org.apache.pekko.stream.connectors.dynamodb.javadsl.DynamoDb
object DynamoDb

Factory of DynamoDb Pekko Stream operators.

Attributes

Source
DynamoDb.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
DynamoDb.type

Members list

Value members

Concrete methods

def flow[In <: DynamoDbRequest, Out <: DynamoDbResponse](client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out], parallelism: Int): Flow[In, Out, NotUsed]

Create a Flow that emits a response for every request.

Create a Flow that emits a response for every request.

Value parameters

parallelism

maximum number of in-flight requests at any given time

Attributes

Source
DynamoDb.scala
def flowPaginated[In <: DynamoDbRequest, Out <: DynamoDbResponse](client: DynamoDbAsyncClient, operation: DynamoDbPaginatedOp[In, Out, _]): Flow[In, Out, NotUsed]

Sends requests to DynamoDB and emits the paginated responses.

Sends requests to DynamoDB and emits the paginated responses.

Pagination is available for BatchGetItem, ListTables, Query and Scan requests.

Attributes

Source
DynamoDb.scala
@ApiMayChange(issue = "https://github.com/akka/alpakka/issues/1987")
def flowWithContext[In <: DynamoDbRequest, Out <: DynamoDbResponse, Ctx](client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out], parallelism: Int): FlowWithContext[In, Ctx, Try[Out], Ctx, NotUsed]

Create a FlowWithContext that emits a response for every request to DynamoDB. A successful response is wrapped in scala.util.Success and a failed response is wrapped in scala.util.Failure.

Create a FlowWithContext that emits a response for every request to DynamoDB. A successful response is wrapped in scala.util.Success and a failed response is wrapped in scala.util.Failure.

The context is merely passed through to the emitted element.

Type parameters

Ctx

context (or pass-through)

Value parameters

parallelism

maximum number of in-flight requests at any given time

Attributes

Source
DynamoDb.scala
def single[In <: DynamoDbRequest, Out <: DynamoDbResponse](client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out], request: In, system: ClassicActorSystemProvider): CompletionStage[Out]

Create a CompletionStage that will be completed with a response to a given request.

Create a CompletionStage that will be completed with a response to a given request.

Attributes

Source
DynamoDb.scala
def source[In <: DynamoDbRequest, Out <: DynamoDbResponse, Pub <: SdkPublisher[Out]](client: DynamoDbAsyncClient, operation: DynamoDbPaginatedOp[In, Out, Pub], request: In): Source[Out, NotUsed]

Create a Source that will emit potentially multiple responses for a given request.

Create a Source that will emit potentially multiple responses for a given request.

Attributes

Source
DynamoDb.scala

Deprecated methods

def single[In <: DynamoDbRequest, Out <: DynamoDbResponse](client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out], request: In, mat: Materializer): CompletionStage[Out]

Create a CompletionStage that will be completed with a response to a given request.

Create a CompletionStage that will be completed with a response to a given request.

Attributes

Deprecated

pass in the actor system instead of the materializer, since Alpakka 3.0.0

Source
DynamoDb.scala