Packages

object Requests

Source
Requests.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Requests
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def batchWriteWithRetries(client: DynamoDbAsyncClient, request: BatchWriteItemRequest, maxRetries: Int, minBackoff: FiniteDuration, maxBackoff: FiniteDuration, randomFactor: Double)(implicit system: ActorSystem[_]): Future[Seq[BatchWriteItemResponse]]

    Perform a DynamoDB batch write, retrying writes for any unprocessed items (with exponential backoff).

    Perform a DynamoDB batch write, retrying writes for any unprocessed items (with exponential backoff).

    client

    the DynamoDB async client to use

    request

    the batch write request to apply

    maxRetries

    max retries, when reached the resulting future will be failed with failOnMaxRetries

    minBackoff

    minimum duration to backoff between retries

    maxBackoff

    maximum duration to backoff between retries

    randomFactor

    adds jitter to the retry delay (use 0 for no jitter)

    returns

    when successful return all responses from attempts, otherwise akka.projection.dynamodb.Requests.BatchWriteFailed with last response

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. def retryWithBackoff[Request, Response](request: Request, attempt: (Request) => Future[Response], decideRetry: (Request, Response) => Option[Request], maxRetries: Int, minBackoff: FiniteDuration, maxBackoff: FiniteDuration, randomFactor: Double, onRetry: (Response, Int, FiniteDuration) => Unit, failOnMaxRetries: (Response) => Throwable)(implicit system: ActorSystem[_]): Future[Seq[Response]]

    Retry generic requests with exponential backoff.

    Retry generic requests with exponential backoff.

    The retry condition is controlled by the decideRetry function. It takes the last request and its response, and if the request should be retried then it can return the next request to attempt.

    request

    the initial request

    attempt

    attempt a request, returning a future of the response

    decideRetry

    retry condition decision function, based on the request and response, returning next request

    maxRetries

    max retries, when reached the resulting future will be failed with failOnMaxRetries

    minBackoff

    minimum duration to backoff between retries

    maxBackoff

    maximum duration to backoff between retries

    randomFactor

    adds jitter to the retry delay (use 0 for no jitter)

    onRetry

    called before each retry, with the response, the current retry count, and the delay for this retry

    failOnMaxRetries

    if max retries is reached, create a throwable for the failed future result

    returns

    all responses from attempts (in order)

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped