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

IKEDA Kiyoshi <progrhyme@gmail.com>

LICENSE

Copyright (C) 2015-2017 IKEDA 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.