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
Methods summary
public
mixed
|
#
setHref( mixed $href )
Set the Href attribute and extrapolate the ID.
Set the Href attribute and extrapolate the ID.
Parameters
Returns
mixed $this
|
public
string
|
|
public
string
|
|
public
Guzzle\Http\Message\Response
|
#
create( array $params = array() )
Create a new resource
Parameters
Returns
Guzzle\Http\Message\Response
Overrides
|
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 loosing 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
Updates the current Claim. It is recommended that you periodically renew
claims during long-running batches of work to avoid loosing 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
Parameters
Returns
Guzzle\Http\Message\Response
Overrides
|
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(),
createJson(),
delete(),
getAlias(),
noCreate(),
noDelete(),
noUpdate(),
refresh(),
refreshFromLocationUrl(),
updateJson(),
waitFor()
|
Methods inherited from OpenCloud\Common\Resource\BaseResource
__construct(),
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
parseResponse(),
primaryKeyField(),
resourceName(),
setMetadata(),
setParent(),
setService()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getInstance(),
getJsonHeader(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|