-
-
05 Sep 2015 10:30:30 UTC
- Distribution: Job-Machine
- Module version: 0.26
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (705 / 3 / 0)
- Kwalitee
Bus factor: 0- 17.40% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (22.69KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Kaare Rasmussen <kaare at cpan dot net>
NAME
Job::Machine::Client
VERSION
version 0.26
SYNOPSIS
my $client = Job::Machine::Client->new(dbh => $dbh, queue => 'job.task'); my $id = $client->send({foo => 'bar'});
NAME
Job::Machine::Client - Class for Job Clients
METHODS
send
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
Check for reply. Parameter: The message id. Will listen for any answers from the worker(s) and return true if there is one.
uncheck
Stop check for reply. Parameter: The message id. Will stop listening for any answers.
receive
Receive the reply. Parameter: The message id. Will get the latest reply to a message or null if no reply.
SEE ALSO
AUTHOR
Kaare Rasmussen <kaare@cpan.org>.
COPYRIGHT
Copyright (C) 2009,2014, Kaare Rasmussen
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
AUTHOR
Kaare Rasmussen <kaare at cpan dot net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 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.
Module Install Instructions
To install Job::Machine, copy and paste the appropriate command in to your terminal.
cpanm Job::Machine
perl -MCPAN -e shell install Job::Machine
For more information on module installation, please visit the detailed CPAN module installation guide.