X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fpools%2Flistener%2Fclass_DefaultListenerPool.php;h=99579c55cee87fcf04318f5c9d8152aa0917b3c7;hb=02f5d01514d6dcd9a0b5e2b07aa5b1bc9265ea33;hp=fce149e502d089873739c727f21097db4836d2c2;hpb=15585567c2714b3a3072fab8b1a8cb5d5c259f7e;p=hub.git diff --git a/application/hub/main/pools/listener/class_DefaultListenerPool.php b/application/hub/main/pools/listener/class_DefaultListenerPool.php index fce149e50..99579c55c 100644 --- a/application/hub/main/pools/listener/class_DefaultListenerPool.php +++ b/application/hub/main/pools/listener/class_DefaultListenerPool.php @@ -66,6 +66,25 @@ class DefaultListenerPool extends BasePool implements PoolableListener { $listenerInstance->getListenPort() . ' added to listener pool.' ); } + + /** + * Run the shutdown seqeuence by a Visitor Pattern + * + * @return void + */ + public function doShutdown () { + // Debug message + $this->debugOutput('POOL: Shutting down listener pool - START'); + + // Get a new visitor + $visitorInstance = ObjectFactory::createObjectByConfiguredName('listener_pool_visitor_class'); + + // Start visiting + $this->accept($visitorInstance); + + // Debug message + $this->debugOutput('POOL: Shutting down listener pool - FINISHED'); + } } // [EOF]