NAME
Reflex::Role::Collectible - add manageability by Reflex::Collection
VERSION
version 0.072
SYNOPSIS
package Bauble;
use Moose;
with 'Reflex::Role::Collectible';
sub stop {
my $self = shift;
$self->stopped();
}
1;
DESCRIPTION
Reflex::Role::Collectible allows consumers to be managed by Reflex::Collection. This role provides a stopped() method that causes the Collectible object to be removed from any Collections that contain it.
For example, a TCP server may use Reflex::Collection to manage a pool of active Reflex::Stream objects, each representing a single client connection. Reflex::Stream calls stopped() by default whenever sockets close or encounter errors, and the server dutifly deletes them.
EXAMPLES
TODO - I'm sure there are some.
SEE ALSO
Reflex Reflex::Collection Reflex::Stream
"ACKNOWLEDGEMENTS" in Reflex "ASSISTANCE" in Reflex "AUTHORS" in Reflex "BUGS" in Reflex "BUGS" in Reflex "CONTRIBUTORS" in Reflex "COPYRIGHT" in Reflex "LICENSE" in Reflex "TODO" in Reflex