Documentation

IncompleteMultipartUploadChecker extends AbstractBackoffStrategy
in package

Retries CompleteMultipartUpload requests in the case of failure.

From the S3 API Documentation:

Processing of a Complete Multipart Upload request could take several minutes to complete. After Amazon S3 begins processing the request, it sends an HTTP response header that specifies a 200 OK response. While processing is in progress, Amazon S3 periodically sends whitespace characters to keep the connection from timing out. Because a request could fail after the initial 200 OK response has been sent, it is important that you check the response body to determine whether the request succeeded. Note that if Complete Multipart Upload fails, applications should be prepared to retry the failed requests.

Table of Contents

Properties

$next  : AbstractBackoffStrategy

Methods

__construct()  : mixed
getBackoffPeriod()  : bool|int
Get the amount of time to delay in seconds before retrying a request
getNext()  : AbstractBackoffStrategy|null
Get the next backoff strategy in the chain
makesDecision()  : bool
Check if the strategy does filtering and makes decisions on whether or not to retry.
setNext()  : mixed
getDelay()  : bool|int|null
Implement the concrete strategy

Properties

Methods

getBackoffPeriod()

Get the amount of time to delay in seconds before retrying a request

public getBackoffPeriod(mixed $retries, RequestInterface $request[, Response $response = null ][, HttpException $e = null ]) : bool|int
Parameters
$retries : mixed

Number of retries of the request

$request : RequestInterface

Request that was sent

$response : Response = null

Response that was received. Note that there may not be a response

$e : HttpException = null

Exception that was encountered if any

Return values
bool|int

Returns false to not retry or the number of seconds to delay between retries

makesDecision()

Check if the strategy does filtering and makes decisions on whether or not to retry.

public makesDecision() : bool

Strategies that return false will never retry if all of the previous strategies in a chain defer on a backoff decision.

Return values
bool

getDelay()

Implement the concrete strategy

protected getDelay(mixed $retries, RequestInterface $request[, Response $response = null ][, HttpException $e = null ]) : bool|int|null
Parameters
$retries : mixed

Number of retries of the request

$request : RequestInterface

Request that was sent

$response : Response = null

Response that was received. Note that there may not be a response

$e : HttpException = null

Exception that was encountered if any

Return values
bool|int|null

Returns false to not retry or the number of seconds to delay between retries. Return true or null to defer to the next strategy if available, and if not, return 0.


        
On this page

Search results