From be4635a9ae668276156a42d1dc5c093aa6e5bd52 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 20 Nov 2012 11:55:28 +0000 Subject: New stub interface. --- lib/custodian/queue.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib/custodian/queue.rb (limited to 'lib') 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 -- cgit v1.2.1