]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/package/class_Deliverable.php
Wording updated.
[hub.git] / application / hub / interfaces / package / class_Deliverable.php
index 28c07d174591f52c1bd52032b5eb0de06791cdc6..5833e0537ef196c98b7e172f9624630f600e85bd 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -27,11 +27,10 @@ interface Deliverable extends FrameworkInterface {
         * from given helper's template instance and pushing it on the 'undeclared'
         * stack.
         *
-        * @param       $helperInstance         An instance of a Helper class
-        * @param       $protocol                       Name of used protocol (TCP/UDP)
+        * @param       $helperInstance         An instance of a HubHelper class
         * @return      void
         */
-       function enqueueRawDataFromTemplate (Helper $helperInstance, $protocol);
+       function enqueueRawDataFromTemplate (HubHelper $helperInstance);
 
        /**
         * Checks whether a package has been enqueued for delivery.
@@ -54,6 +53,13 @@ interface Deliverable extends FrameworkInterface {
         */
        function isPackageWaitingForDelivery ();
 
+       /**
+        * Checks whether encoded (raw) data is pending
+        *
+        * @return      $isPending      Whether encoded data is pending
+        */
+       function isEncodedDataPending ();
+
        /**
         * Delivers an enqueued package to the stated destination. If a non-session
         * id is provided, recipient resolver is being asked (and instanced once).
@@ -67,13 +73,13 @@ interface Deliverable extends FrameworkInterface {
        function declareEnqueuedPackage ();
 
        /**
-        * Delivers the next declared package. Only one package per time will be sent
-        * because this may take time and slows down the whole delivery
+        * Processes the next declared package. Only one package per time will be
+        * processed because this may take time and slows down the whole delivery
         * infrastructure.
         *
         * @return      void
         */
-       function deliverDeclaredPackage ();
+       function processDeclaredPackage ();
 
        /**
         * Sends waiting packages out for delivery
@@ -82,6 +88,13 @@ interface Deliverable extends FrameworkInterface {
         */
        function sendWaitingPackage ();
 
+       /**
+        * Sends pending encoded (raw) data
+        *
+        * @return      void
+        */
+       function sendEncodedData ();
+
        /**
         * Clears all stacks
         *