1MooseX::POE::Meta::TraiUts:e:rObCjoencttr(i3b)uted PerlMDooocsuemXe:n:tPaOtEi:o:nMeta::Trait::Object(3)
2
3
4

NAME

6       MooseX::POE::Meta::Trait::Object - The base class role for MooseX::POE
7

VERSION

9       version 0.215
10

SYNOPSIS

12           package Counter;
13           use MooseX::Poe;
14
15           has name => (
16               isa     => 'Str',
17               is      => 'rw',
18               default => sub { 'Foo ' },
19           );
20
21           has count => (
22               isa     => 'Int',
23               is      => 'rw',
24               lazy    => 1,
25               default => sub { 0 },
26           );
27
28           sub START {
29               my ($self) = @_;
30               $self->yield('increment');
31           }
32
33           sub increment {
34               my ($self) = @_;
35               $self->count( $self->count + 1 );
36               $self->yield('increment') unless $self->count > 3;
37           }
38
39           no MooseX::Poe;
40

DESCRIPTION

42       MooseX::POE::Meta::TraitObject is a role that is applied to the object
43       base classe (usually Moose::Object) that implements a POE::Session.
44

METHODS

46   get_session_id
47       Get the internal POE Session ID, this is useful to hand to other POE
48       aware functions.
49
50   yield
51   call
52   delay
53   alarm
54   alarm_add
55   delay_add
56   alarm_set
57   alarm_adjust
58   alarm_remove
59   alarm_remove_all
60   delay_set
61   delay_adjust
62       A cheap alias for the same POE::Kernel function which will gurantee
63       posting to the object's session.
64
65   STARTALL
66       Along similar lines to Moose's "BUILDALL" method which calls all the
67       "BUILD" methods, this function will call all the "START" methods in
68       your inheritance hierarchy automatically when POE first runs your
69       session. (This corresponds to the "_start" event from POE.)
70
71   STOPALL
72       Along similar lines to "STARTALL", but for "STOP" instead.
73
74   START
75   STOP
76   DEFAULT
77   CHILD
78   PARENT

DEFAULT METHODS

PREDEFINED EVENTS

AUTHORS

82       ·   Chris Prather <chris@prather.org>
83
84       ·   Ash Berlin <ash@cpan.org>
85
86       ·   Chris Williams <chris@bingosnet.co.uk>
87
88       ·   Yuval (nothingmuch) Kogman
89
90       ·   Torsten Raudssus <torsten@raudssus.de> <http://www.raudssus.de/>
91
93       This software is copyright (c) 2010 by Chris Prather, Ash Berlin, Chris
94       Williams, Yuval Kogman, Torsten Raudssus.
95
96       This is free software; you can redistribute it and/or modify it under
97       the same terms as the Perl 5 programming language system itself.
98
99
100
101perl v5.32.0                      2020-07-28MooseX::POE::Meta::Trait::Object(3)
Impressum