NAME

POEx::PubSub::Event - An event abstraction for POEx::PubSub

VERSION

version 1.100910

DESCRIPTION

POEx::PubSub::Event is a simple abstraction for published and subscribed events within PubSub. When using the find_event method or the listing method from PubSub, you will receive this object.

PUBLIC_ATTRIBUTES

name

is: rw, isa: Str, required: 1

The name of the event.

subscribers

traits: Hash, is: rw, isa: HashRef[Subscriber]

subscribers holds all of the subscribers to this event. Subscribers can be accessed via the following methods:

{
    all_subscribers => 'values',
    has_subscribers => 'count',
    add_subscriber => 'set',
    remove_subscriber => 'delete',
    get_subscriber => 'get',
}

publisher

is: rw, isa: Str

The event's publisher.

publishtype

is: rw, isa => PublishType

The event's publish type. Defaults to +PUBLISH_OUTPUT.

input

is: rw, isa: Str

If the publishtype is set to PUBLISH_INPUT, this will indicate the input handling event that belongs to the publisher

AUTHOR

Nicholas Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Nicholas Perez.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.