summary refs log tree commit diff
path: root/lib/presque/worker/Queue.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-05-13 18:25:24 +0200
committerfranck cuny <franck@lumberjaph.net>2010-05-13 18:25:24 +0200
commit68a3e5a46d04f26af54f0763f482930850422af0 (patch)
tree51b38448158696bdec6102dfff6715dfd8fff262 /lib/presque/worker/Queue.pm
parentsome roles to handle dispatch (fork), logging, worker life (handle (diff)
downloadpresque-worker-68a3e5a46d04f26af54f0763f482930850422af0.tar.gz
fetch job from queue, handle job, handle failure, ...
Diffstat (limited to 'lib/presque/worker/Queue.pm')
-rw-r--r--lib/presque/worker/Queue.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/presque/worker/Queue.pm b/lib/presque/worker/Queue.pm
new file mode 100644
index 0000000..9045941
--- /dev/null
+++ b/lib/presque/worker/Queue.pm
@@ -0,0 +1,23 @@
+package presque::worker::Queue;
+
+use Moose;
+
+has base_uri => (
+    is       => 'ro',
+    isa      => 'Str',
+    required => 1
+);
+
+sub push {
+    my ( $self, ) = @_;
+}
+
+sub pull {
+    my ( $self, ) = @_;
+}
+
+sub delete {
+    my ( $self, ) = @_;
+}
+
+1;