AnyEvent::Beanstalk::Job - Class to represent a job from a beanstalkd server
version 1.123530
my $client = AnyEvent::Beanstalk->new; my $job = $client->stats->recv; print $job->data,"\n";
All communication methods called by this class to the server will call recv on the condition variable returned by AnyEvent::Beanstalk. If this is undesired then a call can be made directly to the server via methods on the client.
recv
Note however that beanstalkd processes command in sequence. So if there is currently a reserve request pending. Any calls to these methods will not return until the reserve command has returned so that beanstalkd can process any subsequent commands.
Returns job id
Returns AnyEvent::Beanstalk object for the server the job resides on
Returns true if the job is buried
Returns true if the job was created via a reserve command and has not been deleted, buried or released
Returns the raw data for the beanstalkd server for the job
Returns the last error
Return a Stats object for this job. See AnyEvent::Beanstalk for a list of methods available.
Tell the server to delete this job
Calling touch on a reserved job will reset the time left for the job to complete back to the original ttr value.
touch
Peek this job on the server.
Release the job.
Tell the server to bury the job
Decode and return the raw data from the beanstalkd server
Return the name of the tube the job is in
Returns the jobs time to run, in seconds.
Return the jobs priority
AnyEvent::Beanstalk, AnyEvent::Beanstalk::Stats
Graham Barr <gbarr@pobox.com>
Copyright (C) 2010 by Graham Barr.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install AnyEvent::Beanstalk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::Beanstalk
CPAN shell
perl -MCPAN -e shell install AnyEvent::Beanstalk
For more information on module installation, please visit the detailed CPAN module installation guide.