The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

AnyMQ::Topic - AnyMQ Topic

SYNOPSIS

my $channel = AnyMQ->topic('Foo');
my $client = AnyMQ->new_listener($channel);

DESCRIPTION

An AnyMQ::Topic instance is a topic where messages can be published to, and AnyMQ::Queue objects can subscribe to. each message published to the topic will be appended to each subscribing queue.

METHODS

publish(@messages)

Publish messages to the topic.

add_subscriber($queue)

Add a new listener to the topic.

SEE ALSO

AnyMQ AnyMQ::Queue