[asterisk-scf-commits] asterisk-scf/integration/slice.git branch "workqueue" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Mar 16 16:50:45 CDT 2011


branch "workqueue" has been updated
       via  754feb2254c8e1fca87c77153d19c99f2415d582 (commit)
      from  97c62970be5412ecc69ba679e7cb57968fd64792 (commit)

Summary of changes:
 AsteriskSCF/System/WorkQueue/WorkQueueIf.ice |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 754feb2254c8e1fca87c77153d19c99f2415d582
Author: Mark Michelson <mmichelson at digium.com>
Date:   Wed Mar 16 16:50:00 2011 -0500

    Add some exceptions for work queues.

diff --git a/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice b/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice
index 561427f..7dcf6cb 100644
--- a/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice
+++ b/AsteriskSCF/System/WorkQueue/WorkQueueIf.ice
@@ -42,11 +42,20 @@ module V1
 
     local sequence<Work> WorkSeq;
 
+    local exception WorkNotFound
+    {
+    };
+
+    local exception WorkExists
+    {
+        WorkSeq items;
+    };
+
     local interface Queue
     {
-        void enqueueWork(Work item);
-       	void enqueueWorkSeq(WorkSeq items);
-       	void cancelWork(Work item);
+        void enqueueWork(Work item) throws WorkExists;
+       	void enqueueWorkSeq(WorkSeq items) throws WorkExists;
+       	void cancelWork(Work item) throws WorkNotFound;
 
         /* return value indicates whether queue contains more work
        	   that can be executed immediately

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/slice.git



More information about the asterisk-scf-commits mailing list