The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MangoX::Queue::Job - A job consumed from MangoX::Queue

DESCRIPTION

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

SYNOPSIS

    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

ATTRIBUTES

MangoX::Queue::Job implements the following attributes:

queue

    $job->queue($queue);

Holds the MangoX::Queue instance that MangoX::Queue::Job belongs to. It must be set when the job is created.

METHODS

MangoX::Queue::Job implements the following methods:

DESTROY

Called automatically when $job goes out of scope, undef'd, or refcount goes to 0.

SEE ALSO

MangoX::Queue::Tutorial, Mojolicious, Mango