summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/vendor/pda/pheanstalk/src/Response.php
diff options
context:
space:
mode:
Diffstat (limited to 'intern.gospeladlershof.de/vendor/pda/pheanstalk/src/Response.php')
-rw-r--r--intern.gospeladlershof.de/vendor/pda/pheanstalk/src/Response.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/intern.gospeladlershof.de/vendor/pda/pheanstalk/src/Response.php b/intern.gospeladlershof.de/vendor/pda/pheanstalk/src/Response.php
new file mode 100644
index 0000000..0b2a810
--- /dev/null
+++ b/intern.gospeladlershof.de/vendor/pda/pheanstalk/src/Response.php
@@ -0,0 +1,46 @@
+<?php
+
+namespace Pheanstalk;
+
+/**
+ * A response from the beanstalkd server
+ *
+ * @author Paul Annesley
+ * @package Pheanstalk
+ * @license http://www.opensource.org/licenses/mit-license.php
+ */
+interface Response
+{
+ // global error responses
+ const RESPONSE_OUT_OF_MEMORY = 'OUT_OF_MEMORY';
+ const RESPONSE_INTERNAL_ERROR = 'INTERNAL_ERROR';
+ const RESPONSE_DRAINING = 'DRAINING';
+ const RESPONSE_BAD_FORMAT = 'BAD_FORMAT';
+ const RESPONSE_UNKNOWN_COMMAND = 'UNKNOWN_COMMAND';
+
+ // command responses
+ const RESPONSE_INSERTED = 'INSERTED';
+ const RESPONSE_BURIED = 'BURIED';
+ const RESPONSE_EXPECTED_CRLF = 'EXPECTED_CRLF';
+ const RESPONSE_JOB_TOO_BIG = 'JOB_TOO_BIG';
+ const RESPONSE_USING = 'USING';
+ const RESPONSE_DEADLINE_SOON = 'DEADLINE_SOON';
+ const RESPONSE_RESERVED = 'RESERVED';
+ const RESPONSE_DELETED = 'DELETED';
+ const RESPONSE_NOT_FOUND = 'NOT_FOUND';
+ const RESPONSE_RELEASED = 'RELEASED';
+ const RESPONSE_WATCHING = 'WATCHING';
+ const RESPONSE_NOT_IGNORED = 'NOT_IGNORED';
+ const RESPONSE_FOUND = 'FOUND';
+ const RESPONSE_KICKED = 'KICKED';
+ const RESPONSE_OK = 'OK';
+ const RESPONSE_TIMED_OUT = 'TIMED_OUT';
+ const RESPONSE_TOUCHED = 'TOUCHED';
+ const RESPONSE_PAUSED = 'PAUSED';
+
+ /**
+ * The name of the response
+ * @return string
+ */
+ public function getResponseName();
+}