final class QueueLease implements QueueLeaseInterface (View source)

internal  
 

Binds one renewable transport delivery to the handler's isolated Job scope.

Methods

Creates a lease capability for one transport-owned delivery.

int
renew()

Extends the reservation only while the original delivery still owns it.

int

Details

__construct

__construct(RenewableQueueTransportInterface $transport, QueuedMessage $message)

Creates a lease capability for one transport-owned delivery.

Parameters

RenewableQueueTransportInterface $transport
QueuedMessage $message

renew

int renew()

Extends the reservation only while the original delivery still owns it.

Return Value

int