MangoX::Queue::Job - A job consumed from MangoX::Queue
MangoX::Queue::Job is an object representing a job that has been consumed from MangoX::Queue. The object is just a document/job retrieved from the queue that is blessed, with an added desructor method.
This class is used internally by MangoX::Queue
use MangoX::Queue::Job; my $doc = {...}; my $job = new MangoX::Queue::Job($doc); $job->queue($self); undef($job); # or let $job fall out of scope/refcount to 0
MangoX::Queue::Job implements the following attributes:
$job->queue($queue);
Holds the MangoX::Queue instance that MangoX::Queue::Job belongs to. It must be set when the job is created.
MangoX::Queue::Job implements the following methods:
Called automatically when $job goes out of scope, undef'd, or refcount goes to 0.
$job
MangoX::Queue::Tutorial, Mojolicious, Mango
To install MangoX::Queue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MangoX::Queue
CPAN shell
perl -MCPAN -e shell install MangoX::Queue
For more information on module installation, please visit the detailed CPAN module installation guide.