POE::Component::Supervisor::Interface - Minimal interface for supervisors


POE-Component-Supervisor documentation Contained in the POE-Component-Supervisor distribution.

Index


Code Index:

NAME

Top

POE::Component::Supervisor::Interface - Minimal interface for supervisors

SYNOPSIS

Top

    package My::Supervisor;
    with qw(POE::Component::Supervisor::Interface);

    





DESCRIPTION

Top

This role lets you implement your own supervisor, reusing POE::Component::Supervisor::Supervised and POE::Component::Supervisor::Handle implementations.

This is useful if you'd like to start/stop/monitor child components/processes without the monitoring/restarting logic in POE::Component::Supervisor itself.

REQUIRED METHODS

Top


POE-Component-Supervisor documentation Contained in the POE-Component-Supervisor distribution.

#!/usr/bin/perl

package POE::Component::Supervisor::Interface;
use Moose::Role;

use namespace::clean -except => 'meta';

requires qw(
    notify_spawned
    notify_stopped
);

__PACKAGE__

__END__