NAME
Exobrain::Agent::Poll - Role for exobrain sources which poll a source.
VERSION
version 1.08
SYNOPSIS
package Exobrain::Agent::Action::Foo;
use Moose;
with 'Exobrain::Agent::Poll';
sub poll {
# This method will be called on a regular basis.
}
DESCRIPTION
This role arranges for the consumer's poll
method to be called on a periodic basis. It also includes the functionality of Exobrain::Agent.
METHODS
start
This is a wrapper around the actual agent, which arranges to call its poll
method every $self-
frequency> seconds.
It never returns.
AUTHOR
Paul Fenwick <pjf@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Paul Fenwick.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.