The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Koyomi::DataSource::Semaphore - Abstract datasource class for semaphore entity

SYNOPSIS

    use parent qw(App::Koyomi::DataSource::Semaphore);

    # Your implementation goes below
    sub instance { ... }
    sub get_by_job_id { ... }
    sub create { ... }
    sub delete_by_job_id { ... }

DESCRIPTION

Abstract datasource class for koyomi semaphore entity.

METHODS

instance

Construct datasource object. Probably it's singleton.

get_by_job_id

Fetch one semaphore by job_id.

create

Create a semaphore.

delete_by_job_id

Delete one semaphore specified by job_id.

SEE ALSO

App::Koyomi::Job

AUTHORS

YASUTAKE Kiyoshi <yasutake.kiyoshi@gmail.com>

LICENSE

Copyright (C) 2015 YASUTAKE Kiyoshi.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. That means either (a) the GNU General Public License or (b) the Artistic License.