summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-20 11:55:28 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-20 11:55:28 +0000
commit4be29eb482be5c9b83cca9a110901f454fcf16a5 (patch)
tree7ba6ee9d54b2d50c2611d38b2a412a3deb317190
parent50902e98db186ab9a337bd4a76e4b3d69ba704ac (diff)
New stub interface.
-rw-r--r--lib/custodian/queue.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb
new file mode 100644
index 0000000..1e0004f
--- /dev/null
+++ b/lib/custodian/queue.rb
@@ -0,0 +1,34 @@
+
+
+#
+# Interface for our queue.
+#
+# We'll use this rather than the beanstalk-client
+#
+class Queue
+
+ #
+ # Constructor
+ #
+ def initialize( server )
+ end
+
+ #
+ # Put an object.
+ #
+ # The object is serialized via JSON
+ #
+ def put( object )
+ end
+
+ #
+ # Retrieve a native object from the Queue.
+ #
+ # The object is deserialized using JSON.
+ #
+ # This method will not return until there is an object present.
+ #
+ def fetch
+ end
+
+end