Zing::Meta - Process Metadata
Generic Process Metadata
use Zing::Meta; my $meta = Zing::Meta->new(name => rand); # $meta->recv;
This package provides process metadata for tracking active processes.
This package inherits behaviors from:
Zing::KeyVal
This package uses type constraints from:
Zing::Types
This package has the following attributes:
name(Str)
This attribute is read-only, accepts (Str) values, and is optional.
(Str)
This package implements the following methods:
drop() : Int
The drop method returns truthy if the process metadata can be dropped.
# given: synopsis $meta->drop;
recv() : Maybe[HashRef]
The recv method fetches the process metadata (if any).
# given: synopsis $meta->recv;
# given: synopsis use Zing::Process; $meta->send(Zing::Process->new->metadata); $meta->recv;
send(HashRef $proc) : Str
The send method commits the metadata provided to the store overwriting any existing data.
# given: synopsis $meta->send({ created => time });
# given: synopsis use Zing::Process; $meta->drop; $meta->send(Zing::Process->new->metadata);
term(Str @keys) : Str
The term method generates a term (safe string) for the metadata.
# given: synopsis $meta->term;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
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".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Zing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zing
CPAN shell
perl -MCPAN -e shell install Zing
For more information on module installation, please visit the detailed CPAN module installation guide.