Matt S Trout > POE-Component-Supervisor > POE::Component::Supervisor::Handle::Session

Download:
POE-Component-Supervisor-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

POE::Component::Supervisor::Handle::Session - Helps POE::Component::Supervisor babysit POE sessions.

SYNOPSIS ^

    # used by L<POE::Component::Supervisor::Supervised::Session>

DESCRIPTION ^

This supervision handle will watch POE::Sessions

ATTRIBUTES ^

These attributes apply to the POE::Component::Supervisor::Supervised::Session constructor.

start_callback

The body of code to run in order to (re)spawn the session(s).

If implicit_tracking is off (the default) the sessions to be tracked must be returned from this method.

implicit_tracking

When true, all created child sessions will be implicitly tracked.

This means that you can generally just create POE components or sessions in the start callback.

Otherwise the sessions to be tracked must be returned from the start_callback.

Defaults to false.

METHODS ^

new

Never called directly, only called by POE::Component::Supervisor::Supervised::Session.

stop

Stop the supervised sessions.

is_running
syntax highlighting: