
Job::Machine::Client

version 0.18

my $client = Job::Machine::Client->new(dbh => $dbh, queue => 'job.task');
my $id = $client->send({foo => 'bar'});

Job::Machine::Client - Class for Job Clients

Send a message to the configured queue Parameters data - data to pass to the worker process queue - optional queue name. Not needed if already set in new Returns the message id.
Check for reply. Parameter: The message id. Will listen for any answers from the worker(s) and return true if there is one.
Stop check for reply. Parameter: The message id. Will stop listening for any answers.
Receive the reply. Parameter: The message id. Will get the latest reply to a message or null if no reply.


Kaare Rasmussen <kaare@cpan.org>.

Copyright (C) 2009-2010, Kaare Rasmussen
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.

Kaare Rasmussen <kaare at cpan dot net>

This software is copyright (c) 2011 by Kaare Rasmussen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.