POEx::WorkerPool::Types - Type constraints for POEx::WorkerPool


POEx-WorkerPool documentation  | view source Contained in the POEx-WorkerPool distribution.

Index


NAME

Top

POEx::WorkerPool::Types - Type constraints for POEx::WorkerPool

VERSION

Top

version 1.102740

DESCRIPTION

Top

This module exports the type constrains needed for POEx::WorkerPool.

For importing options see MooseX::Types.

TYPES

Top

DoesWorker

Must compose the POEx::WorkerPool::Role::WorkerPool::Worker role.

DoesWorkerPool

Must compose the POEx::WorkerPool::Role::WorkerPool role.

DoesWorkerGuts

Must compose the POEx::WorkerPool::Role::WorkerPool::Worker::Guts role.

DoesJob

Must compose the POEx::WorkerPool::Role::WorkerPool::Job role.

WorkerEvent

Must be one of the worker events defined in POEx::WorkerPool::WorkerEvents

JobStatus

JobStatus is what a Worker::Guts composed object must return. It consistes of a hash with three keys and potential forth depending on type. See below: { type => WorkerEvent, ID => Str, msg => Ref, percent_complete => Maybe[Int] }

percent_complete is only valid when type is +PXWP_JOB_PROGRESS

JobStep

When constructing Jobs, each step must match a Tuple[CodeRef, ArrayRef] where the code ref is the actual thing to execute and the array ref is the collection of arguments to be passed to the code ref verbatim.

IsaError

This is a convenience constraint that checks if the object inherits from Error

AUTHOR

Top

Nicholas R. Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

Top


POEx-WorkerPool documentation  | view source Contained in the POEx-WorkerPool distribution.