NAME
AnyEvent::Processor - AnyEvent::Processor - Base class for processing something
VERSION
version 0.003
ATTRIBUTES
verbose
Verbose mode. In this mode an AnyEvent::Processor::Watcher is automatically created, with a 1s timeout, and action directly sent to this class. You can create your own watcher subclassing AnyEvent::Processor::Watcher.
watcher
An AnyEvent::Processor::Watcher.
count
Number of items which have been processed.
blocking
Is it a blocking task (not a task). False by default.
METHODS
run
Run the process.
start_process
Something to do at begining of the process.
start_message
Something to say about the process. Called by default watcher when verbose mode enabled.
process
Process something and increment count.
process_message
Say something about the process. Called by default watcher (verbose mode) each 1s. Each time process is called, count in incremented.
end_process
Do something at the end of the process.
end_message
Say something at the end of the process. Called by default watcher.
AUTHOR
Frédéric Demians <f.demians@tamil.fr>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Fréderic Demians.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007