Gearman::Driver::Job::Method - Wraps a single job method


Gearman-Driver documentation  | view source Contained in the Gearman-Driver distribution.

Index


NAME

Top

Gearman::Driver::Job::Method - Wraps a single job method

DESCRIPTION

Top

ATTRIBUTES

Top

name

Name of the job method.

body

Code reference which is called by Gearman::XS::Worker. Actually it's not called directly by it, but in a wrapped coderef.

worker

Reference to the worker object.

encode

This may be set to a method name which is implemented in the worker class or any subclass. If the method is not available, it will fail. The returned value of the job method is passed to this method and the return value of this method is sent back to the Gearman server.

See also: Encode in Gearman::Driver::Worker.

decode

This may be set to a method name which is implemented in the worker class or any subclass. If the method is not available, it will fail. The workload from Gearman::XS::Job is passed to this method and the return value is passed as argument $workload to the job method.

See also: Decode in Gearman::Driver::Worker.

AUTHOR

Top

See Gearman::Driver.

COPYRIGHT AND LICENSE

Top

SEE ALSO

Top

* Gearman::Driver
* Gearman::Driver::Adaptor
* Gearman::Driver::Console
* Gearman::Driver::Console::Basic
* Gearman::Driver::Console::Client
* Gearman::Driver::Job
* Gearman::Driver::Loader
* Gearman::Driver::Observer
* Gearman::Driver::Worker

Gearman-Driver documentation  | view source Contained in the Gearman-Driver distribution.