POE::Component::Supervisor::Handle::Session - Helps


POE-Component-Supervisor documentation  | view source Contained in the POE-Component-Supervisor distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

This supervision handle will watch POE::Sessions

ATTRIBUTES

Top

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

Top

new

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

stop

Stop the supervised sessions.

is_running

POE-Component-Supervisor documentation  | view source Contained in the POE-Component-Supervisor distribution.