Net::Server::Framework::Spooler - asynchronous interface for Net::Server::Framework based daemons
This documentation refers to Net::Server::Framework::Spooler version 1.0.
A typical invocation looks like this:
my $put = {body => $c, user => $c->{user}}; $c->{ID} = Net::Server::Framework::Spooler::put($put);
This interface is used to process asynchronous requests for daemons. It relies on a spooler daemon and a spool database. If present this lib handles the interaction of clients and server that need to process things in a asynchronous way.
The commands accepted by the lib are:
Insert a hash into the spooler
Retrieve a hash from the spooler
Update a hash in the spooler (normally this is done when a response is processed)
Remove a hash from the spooler
Test if a hash is updated in the spooler. This function is called in async mode to test if we have a response or not (basic polling)
This archives a hash into a archive location.
There are no known bugs in this module. Please report problems to Lenz Gschwendtner ( <lenz@springtimesoft.com> ) Patches are welcome.
Lenz Gschwendtner ( <lenz@springtimesoft.com> )
Copyright (c) 2007 Lenz Gschwerndtner ( <lenz@springtimesoft.comn> ) All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Net::Server::Framework, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Server::Framework
CPAN shell
perl -MCPAN -e shell install Net::Server::Framework
For more information on module installation, please visit the detailed CPAN module installation guide.