]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/pools/listener/class_DefaultListenerPool.php
Moved a lot classes, added visitors and methods
[hub.git] / application / hub / main / pools / listener / class_DefaultListenerPool.php
index 99579c55cee87fcf04318f5c9d8152aa0917b3c7..621c80c21fbfc1d93b5d5816b5bf855d0cf6c97c 100644 (file)
@@ -67,6 +67,21 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
                );
        }
 
+       /**
+        * Handle the listeners by asking them for received network packages.
+        * You should not add any debug lines here because they will be executed
+        * in the main loop and may be a performance impact.
+        *
+        * @return      void
+        */
+       public function handleListenerPool () {
+               // Get a visitor instance
+               $visitorInstance = ObjectFactory::createObjectByConfiguredName('handler_listener_pool_visitor_class');
+
+               // Start the visit
+               $this->accept($visitorInstance);
+       }
+
        /**
         * Run the shutdown seqeuence by a Visitor Pattern
         *
@@ -77,7 +92,7 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
                $this->debugOutput('POOL: Shutting down listener pool - START');
 
                // Get a new visitor
-               $visitorInstance = ObjectFactory::createObjectByConfiguredName('listener_pool_visitor_class');
+               $visitorInstance = ObjectFactory::createObjectByConfiguredName('shutdown_listener_pool_visitor_class');
 
                // Start visiting
                $this->accept($visitorInstance);