NAME
IPC::Queue::Duplex::Job - An IPC::Queue::Duplex job
VERSION
$Revision: 1.009 $
$Date: Tue Oct 16 21:48:32 PDT 2018 $
SYNOPSIS
(Enqueuer)
use IPC::Queue::Duplex;
my $client = new IPC::Queue::Duplex (Dir => $dir);
my $job = $client->add($jobstr);
my $response = $job->response;
(Worker)
use IPC::Queue::Duplex;
my $server = new IPC::Queue::Duplex (Dir => $dir);
my $job = $server->get:
process_job($job);
$job->finish($result);
METHODS
new
Not intended to be called directly. Use an IPC::Queue::Duplex object to create jobs.
finish
A job worker calls this method with a single argument, a string containing the result of the job. This marks the job finished and returns the result to the requester.
response
A requester calls this method with no arguments after placing a job on the queue. It returns the result of the job when it's available.
delete
Deletes this job from the queue. No arguments.
AUTHOR
Ashish Gulhati, <ipc-qd at hash.neo.tc>
BUGS
Please report any bugs or feature requests to bug-ipc-queue-duplex at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IPC-Queue-Duplex. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc IPC::Queue::Duplex::Job
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright (c) Ashish Gulhati.
This software package is Open Software; you can use, redistribute, and/or modify it under the terms of the Open Artistic License 2.0.
Please see http://www.opensoftwr.org/oal20.txt for the full license terms, and ensure that the license grant applies to you before using or modifying this software. By using or modifying this software, you indicate your agreement with the license terms.