NAME
Zing::Process - Processing Unit
ABSTRACT
Processing Unit and Actor Abstraction
SYNOPSIS
use Zing::Process;
my $process = Zing::Process->new;
# $process->execute;
DESCRIPTION
This package provides an actor abstraction which serve as a cooperative concurrent computational unit in an actor-model architecture.
LIBRARIES
This package uses type constraints from:
ATTRIBUTES
This package has the following attributes:
cleanup
cleanup(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
data
data(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
journal
journal(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
log
log(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
logic
logic(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
loop
loop(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
mailbox
mailbox(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
name
name(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
node
node(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
parent
parent(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
registry
registry(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
server
server(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
signals
signals(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
started
started(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
stopped
stopped(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
METHODS
This package implements the following methods:
defer
defer(HashRef $data) : Object
The defer method allows a process to sends a message to itself for later processing.
destroy
destroy() : Object
The destroy method de-registers the process and drops the process-specific data stores.
execute
execute() : Object
The execute method executes the process event-loop indefinitely.
exercise
exercise() : Object
The exercise method executes the event-loop but stops after one iteration.
metadata
metadata() : HashRef
The metadata method returns metadata specific to the process.
shutdown
shutdown() : Object
The shutdown method haults the process event-loop immediately.
spawn
spawn(Scheme $scheme) : Fork
The spawn method forks a scheme and returns a Zing::Fork handler.
winddown
winddown() : Object
The winddown method haults the process event-loop after the current iteration.
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".