Class Claim
A worker claims or checks out a message to perform a task. Doing so prevents other workers from attempting to process the same messages.
- OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Queues\Resource\Claim
public
mixed
|
|
public
string
|
|
public
string
|
|
public
Guzzle\Http\Message\Response
|
|
public
Guzzle\Http\Message\Response
|
#
update( array $params = array() )
Updates the current Claim. It is recommended that you periodically renew claims during long-running batches of work to avoid losing a claim in the middle of processing a message. This is done by setting a new TTL for the claim (which may be different from the original TTL). The server will then reset the age of the claim and apply the new TTL. Update a resource |
integer |
LIMIT_DEFAULT
|
# 10 |
integer |
GRACE_DEFAULT
|
# 43200 |
integer |
TTL_DEFAULT
|
# 43200 |
PATCH_CONTENT_TYPE
|
protected static
string
|
$url_resource
|
# 'claims' |
protected static
string
|
$json_name
|
# '' |
$metadata,
$parent,
$service
|
$aliases
|