AnyMQ
view release on metacpan or search on metacpan
lib/AnyMQ/Queue.pm view on Meta::CPAN
=head2 destroyed(BOOL)
Marking the current queue as destroyed or not.
=head2 timeout($seconds)
Timeout value for this queue. Default is 55.
=head2 on_error(sub { my ($queue, $error, @msg) = @_; ... })
Sets the error handler invoked when C<poll> or C<poll_once> callbacks
fail. By default the queue is marked as destroyed. If you register
this error handler, you should call C<< $queue->destroyed(1) >> should you
wish to mark the queue as destroyed and reclaim resources.
Note that for queues that are currently C<poll>'ed, you may unset the
C<persistent> attribute to avoid the queue from being destroyed, and
can be used for further C<poll> or C<poll_once> calls. In this case,
C<on_timeout> will be triggered if C<poll> or C<poll_once> is not
called after C<< $self->timeout >> seconds.
( run in 0.966 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )