AnyEvent::Beanstalk::Job - Class to represent a job from a beanstalkd server
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.
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
touchon a reserved job will reset the time left for the job to complete back to the original ttr value.
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
Graham Barr <firstname.lastname@example.org>
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.