AnyMQ::Topic::Trait::WithBacklog - AnyMQ topic trait for backlog behaviour
my $bus = AnyMQ->new; my $channel = AnyMQ::Topic->new_with_trait (traits => ['WithBacklog'], backlog_length => 30, bus => $bus); my $client = AnyMQ->new_listener($channel);
The topic trait for AnyMQ provides backlog to a topic. newly subscribed listeners (an <AnyMQ::Queue> object) will received the last backlog_length messages published to the topic.
backlog_length
How many messages are to be kept for the topic.
AnyMQ AnyMQ::Topic
To install AnyMQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyMQ
CPAN shell
perl -MCPAN -e shell install AnyMQ
For more information on module installation, please visit the detailed CPAN module installation guide.