<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/> <meta charset="utf-8"/> <title>PHP-MSF</title> <meta name="author" content=""/> <meta name="description" content=""/> <link href="../css/bootstrap-combined.no-icons.min.css" rel="stylesheet"> <link href="../css/font-awesome.min.css" rel="stylesheet"> <link href="../css/prism.css" rel="stylesheet" media="all"/> <link href="../css/template.css" rel="stylesheet" media="all"/> <!--[if lt IE 9]> <script src="../js/html5.js"></script> <![endif]--> <script src="../js/jquery-1.11.0.min.js"></script> <script src="../js/ui/1.10.4/jquery-ui.min.js"></script> <script src="../js/bootstrap.min.js"></script> <script src="../js/jquery.smooth-scroll.js"></script> <script src="../js/prism.min.js"></script> <!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit--> <script type="text/javascript"> function loadExternalCodeSnippets() { Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) { var src = pre.getAttribute('data-src'); var extension = (src.match(/\.(\w+)$/) || [, ''])[1]; var language = 'php'; var code = document.createElement('code'); code.className = 'language-' + language; pre.textContent = ''; code.textContent = 'Loading…'; pre.appendChild(code); var xhr = new XMLHttpRequest(); xhr.open('GET', src, true); xhr.onreadystatechange = function () { if (xhr.readyState == 4) { if (xhr.status < 400 && xhr.responseText) { code.textContent = xhr.responseText; Prism.highlightElement(code); } else if (xhr.status >= 400) { code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText; } else { code.textContent = '✖ Error: File does not exist or is empty'; } } }; xhr.send(null); }); } $(document).ready(function(){ loadExternalCodeSnippets(); }); $('#source-view').on('shown', function () { loadExternalCodeSnippets(); }) </script> <link rel="shortcut icon" href="../images/favicon.ico"/> <link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/> <link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/> <link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/> </head> <body> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-target=".nav-collapse"> <i class="icon-ellipsis-vertical"></i> </a> <a class="brand" href="../index.html">PHP-MSF</a> <div class="nav-collapse"> <ul class="nav pull-right"> <li class="dropdown"> <a href="../index.html" class="dropdown-toggle" data-toggle="dropdown"> PHP-MSF <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="../namespaces/PG.html">\PG</a></li> </ul> </li> <li class="dropdown" id="charts-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> Charts <b class="caret"></b> </a> <ul class="dropdown-menu"> <li> <a href="../graphs/class.html"> <i class="icon-list-alt"></i> Class hierarchy diagram </a> </li> </ul> </li> <li class="dropdown" id="reports-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> Reports <b class="caret"></b> </a> <ul class="dropdown-menu"> <li> <a href="../reports/errors.html"> <i class="icon-list-alt"></i> Errors <span class="label label-info pull-right">7</span> </a> </li> <li> <a href="../reports/markers.html"> <i class="icon-list-alt"></i> Markers <span class="label label-info pull-right">4</span> </a> </li> <li> <a href="../reports/deprecated.html"> <i class="icon-list-alt"></i> Deprecated <span class="label label-info pull-right">0</span> </a> </li> </ul> </li> </ul> </div> </div> </div> <!--<div class="go_to_top">--> <!--<a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a>--> <!--</div>--> </div> <div id="___" class="container-fluid"> <section class="row-fluid"> <div class="span2 sidebar"> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle " data-target="#namespace-333803704"></a> <a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a> </div> <div id="namespace-333803704" class="accordion-body in collapse"> <div class="accordion-inner"> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-158102026"></a> <a href="../namespaces/PG.html" style="margin-left: 30px; padding-left: 0">PG</a> </div> <div id="namespace-158102026" class="accordion-body in collapse"> <div class="accordion-inner"> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-2122026352"></a> <a href="../namespaces/PG.MSF.html" style="margin-left: 30px; padding-left: 0">MSF</a> </div> <div id="namespace-2122026352" class="accordion-body in collapse"> <div class="accordion-inner"> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-508202878"></a> <a href="../namespaces/PG.MSF.Base.html" style="margin-left: 30px; padding-left: 0">Base</a> </div> <div id="namespace-508202878" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Base.AOPFactory.html">AOPFactory</a></li> <li class="class"><a href="../classes/PG.MSF.Base.Child.html">Child</a></li> <li class="class"><a href="../classes/PG.MSF.Base.Core.html">Core</a></li> <li class="class"><a href="../classes/PG.MSF.Base.Input.html">Input</a></li> <li class="class"><a href="../classes/PG.MSF.Base.Output.html">Output</a></li> <li class="class"><a href="../classes/PG.MSF.Base.Pool.html">Pool</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-526708807"></a> <a href="../namespaces/PG.MSF.Client.html" style="margin-left: 30px; padding-left: 0">Client</a> </div> <div id="namespace-526708807" class="accordion-body in collapse"> <div class="accordion-inner"> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-600534651"></a> <a href="../namespaces/PG.MSF.Client.Http.html" style="margin-left: 30px; padding-left: 0">Http</a> </div> <div id="namespace-600534651" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Client.Http.Client.html">Client</a></li> </ul> </div> </div> </div> </div> <ul> <li class="class"><a href="../classes/PG.MSF.Client.ConcurrentClient.html">ConcurrentClient</a></li> <li class="class"><a href="../classes/PG.MSF.Client.RpcClient.html">RpcClient</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-1761725817"></a> <a href="../namespaces/PG.MSF.Console.html" style="margin-left: 30px; padding-left: 0">Console</a> </div> <div id="namespace-1761725817" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Console.Controller.html">Controller</a></li> <li class="class"><a href="../classes/PG.MSF.Console.Request.html">Request</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-1488476823"></a> <a href="../namespaces/PG.MSF.Controllers.html" style="margin-left: 30px; padding-left: 0">Controllers</a> </div> <div id="namespace-1488476823" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Controllers.Bench.html">Bench</a></li> <li class="class"><a href="../classes/PG.MSF.Controllers.Controller.html">Controller</a></li> <li class="class"><a href="../classes/PG.MSF.Controllers.Monitor.html">Monitor</a></li> <li class="class"><a href="../classes/PG.MSF.Controllers.Rest.html">Rest</a></li> <li class="class"><a href="../classes/PG.MSF.Controllers.Rpc.html">Rpc</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-456170441"></a> <a href="../namespaces/PG.MSF.Coroutine.html" style="margin-left: 30px; padding-left: 0">Coroutine</a> </div> <div id="namespace-456170441" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="interface"><a href="../classes/PG.MSF.Coroutine.IBase.html">IBase</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.Base.html">Base</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.CException.html">CException</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.CNull.html">CNull</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.CTask.html">CTask</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.Dns.html">Dns</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.Http.html">Http</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.MySql.html">MySql</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.Redis.html">Redis</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.Scheduler.html">Scheduler</a></li> <li class="class"><a href="../classes/PG.MSF.Coroutine.Task.html">Task</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-1097543452"></a> <a href="../namespaces/PG.MSF.Helpers.html" style="margin-left: 30px; padding-left: 0">Helpers</a> </div> <div id="namespace-1097543452" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Helpers.Context.html">Context</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-1093690069"></a> <a href="../namespaces/PG.MSF.Models.html" style="margin-left: 30px; padding-left: 0">Models</a> </div> <div id="namespace-1093690069" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Models.Model.html">Model</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-1154372952"></a> <a href="../namespaces/PG.MSF.Pack.html" style="margin-left: 30px; padding-left: 0">Pack</a> </div> <div id="namespace-1154372952" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="interface"><a href="../classes/PG.MSF.Pack.IPack.html">IPack</a></li> <li class="class"><a href="../classes/PG.MSF.Pack.JsonPack.html">JsonPack</a></li> <li class="class"><a href="../classes/PG.MSF.Pack.MsgPack.html">MsgPack</a></li> <li class="class"><a href="../classes/PG.MSF.Pack.SerializePack.html">SerializePack</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-819089731"></a> <a href="../namespaces/PG.MSF.Pools.html" style="margin-left: 30px; padding-left: 0">Pools</a> </div> <div id="namespace-819089731" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="interface"><a href="../classes/PG.MSF.Pools.IAsynPool.html">IAsynPool</a></li> <li class="class"><a href="../classes/PG.MSF.Pools.AsynPool.html">AsynPool</a></li> <li class="class"><a href="../classes/PG.MSF.Pools.AsynPoolManager.html">AsynPoolManager</a></li> <li class="class"><a href="../classes/PG.MSF.Pools.CoroutineRedisProxy.html">CoroutineRedisProxy</a></li> <li class="class"><a href="../classes/PG.MSF.Pools.Miner.html">Miner</a></li> <li class="class"><a href="../classes/PG.MSF.Pools.MysqlAsynPool.html">MysqlAsynPool</a></li> <li class="class"><a href="../classes/PG.MSF.Pools.RedisAsynPool.html">RedisAsynPool</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-309714505"></a> <a href="../namespaces/PG.MSF.Process.html" style="margin-left: 30px; padding-left: 0">Process</a> </div> <div id="namespace-309714505" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Process.Config.html">Config</a></li> <li class="class"><a href="../classes/PG.MSF.Process.Inotify.html">Inotify</a></li> <li class="class"><a href="../classes/PG.MSF.Process.ProcessBase.html">ProcessBase</a></li> <li class="class"><a href="../classes/PG.MSF.Process.Timer.html">Timer</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-454047497"></a> <a href="../namespaces/PG.MSF.Proxy.html" style="margin-left: 30px; padding-left: 0">Proxy</a> </div> <div id="namespace-454047497" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="interface"><a href="../classes/PG.MSF.Proxy.IProxy.html">IProxy</a></li> <li class="class"><a href="../classes/PG.MSF.Proxy.RedisProxyCluster.html">RedisProxyCluster</a></li> <li class="class"><a href="../classes/PG.MSF.Proxy.RedisProxyFactory.html">RedisProxyFactory</a></li> <li class="class"><a href="../classes/PG.MSF.Proxy.RedisProxyMasterSlave.html">RedisProxyMasterSlave</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-749669089"></a> <a href="../namespaces/PG.MSF.Rest.html" style="margin-left: 30px; padding-left: 0">Rest</a> </div> <div id="namespace-749669089" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Rest.Controller.html">Controller</a></li> <li class="class"><a href="../classes/PG.MSF.Rest.Serializer.html">Serializer</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-2067626350"></a> <a href="../namespaces/PG.MSF.Route.html" style="margin-left: 30px; padding-left: 0">Route</a> </div> <div id="namespace-2067626350" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="interface"><a href="../classes/PG.MSF.Route.IRoute.html">IRoute</a></li> <li class="class"><a href="../classes/PG.MSF.Route.NormalRoute.html">NormalRoute</a></li> <li class="class"><a href="../classes/PG.MSF.Route.RestRoute.html">RestRoute</a></li> </ul> </div> </div> </div> </div> <div class="accordion" style="margin-bottom: 0"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-target="#namespace-1835911974"></a> <a href="../namespaces/PG.MSF.Tasks.html" style="margin-left: 30px; padding-left: 0">Tasks</a> </div> <div id="namespace-1835911974" class="accordion-body in collapse"> <div class="accordion-inner"> <ul> <li class="class"><a href="../classes/PG.MSF.Tasks.MongoDbTask.html">MongoDbTask</a></li> <li class="class"><a href="../classes/PG.MSF.Tasks.Task.html">Task</a></li> <li class="class"><a href="../classes/PG.MSF.Tasks.TaskProxy.html">TaskProxy</a></li> </ul> </div> </div> </div> </div> <ul> <li class="class"><a href="../classes/PG.MSF.HttpServer.html">HttpServer</a></li> <li class="class"><a href="../classes/PG.MSF.Marco.html">Marco</a></li> <li class="class"><a href="../classes/PG.MSF.MSFCli.html">MSFCli</a></li> <li class="class"><a href="../classes/PG.MSF.MSFServer.html">MSFServer</a></li> <li class="class"><a href="../classes/PG.MSF.Server.html">Server</a></li> </ul> </div> </div> </div> </div> <ul> </ul> </div> </div> </div> </div> <ul> </ul> </div> </div> </div> </div> </div> </section> <section class="row-fluid"> <div class="span10 offset2"> <div class="row-fluid"> <div class="span8 content class"> <nav> <a href="../namespaces/PG.MSF.Base.html">\PG\MSF\Base</a> <i class="icon-level-up"></i> </nav> <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a> <h1><small>\PG\MSF\Base</small>AOPFactory</h1> <p><em>Class AOPFactory</em></p> <section id="summary"> <h2>Summary</h2> <section class="row-fluid heading"> <section class="span4"> <a href="#methods">Methods</a> </section> <section class="span4"> <a href="#properties">Properties</a> </section> <section class="span4"> <a href="#constants">Constants</a> </section> </section> <section class="row-fluid public"> <section class="span4"> <a href="../classes/PG.MSF.Base.AOPFactory.html#method_getRedisPoolCoroutine" class="">getRedisPoolCoroutine()</a><br /> <a href="../classes/PG.MSF.Base.AOPFactory.html#method_getMysqlPoolCoroutine" class="">getMysqlPoolCoroutine()</a><br /> <a href="../classes/PG.MSF.Base.AOPFactory.html#method_getRedisProxy" class="">getRedisProxy()</a><br /> <a href="../classes/PG.MSF.Base.AOPFactory.html#method_getObjectPool" class="">getObjectPool()</a><br /> </section> <section class="span4"> <em>No public properties found</em> </section> <section class="span4"> <em>No constants found</em> </section> </section> <section class="row-fluid protected"> <section class="span4"> <em>No protected methods found</em> </section> <section class="span4"> <a href="../classes/PG.MSF.Base.AOPFactory.html#property_reflections" class="">$reflections</a><br /> <a href="../classes/PG.MSF.Base.AOPFactory.html#property_taskClasses" class="">$taskClasses</a><br /> </section> <section class="span4"> <em>N/A</em> </section> </section> <section class="row-fluid private"> <section class="span4"> <em>No private methods found</em> </section> <section class="span4"> <em>No private properties found</em> </section> <section class="span4"> <em>N/A</em> </section> </section> </section> </div> <aside class="span4 detailsbar"> <dl> <dt>File</dt> <dd><a href="../files/Base.AOPFactory.html"><div class="path-wrapper">Base/AOPFactory.php</div></a></dd> <dt>Package</dt> <dd><div class="namespace-wrapper">MSF\Base</div></dd> <dt>Class hierarchy</dt> <dd class="hierarchy"> <div class="namespace-wrapper">\PG\AOP\Factory</div> <div class="namespace-wrapper">\PG\MSF\Base\AOPFactory</div> </dd> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> <a id="properties" name="properties"></a> <div class="row-fluid"> <div class="span8 content class"> <h2>Properties</h2> </div> <aside class="span4 detailsbar"></aside> </div> <div class="row-fluid"> <div class="span8 content class"> <a id="property_reflections" name="property_reflections" class="anchor"></a> <article class="property"> <h3 class="protected ">$reflections</h3> <pre class="signature">$reflections : array</pre> <p><em></em></p> <h4>Type</h4> array — 通过反射获取类的public属性默认值(销毁对象) </article> </div> <aside class="span4 detailsbar"> <h1><i class="icon-arrow-down"></i></h1> <dl> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> <div class="row-fluid"> <div class="span8 content class"> <a id="property_taskClasses" name="property_taskClasses" class="anchor"></a> <article class="property"> <h3 class="protected ">$taskClasses</h3> <pre class="signature">$taskClasses : array</pre> <p><em></em></p> <h4>Type</h4> array — 所有为Task类的标识 </article> </div> <aside class="span4 detailsbar"> <h1><i class="icon-arrow-down"></i></h1> <dl> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> <a id="methods" name="methods"></a> <div class="row-fluid"> <div class="span8 content class"><h2>Methods</h2></div> <aside class="span4 detailsbar"></aside> </div> <div class="row-fluid"> <div class="span8 content class"> <a id="method_getRedisPoolCoroutine" name="method_getRedisPoolCoroutine" class="anchor"></a> <article class="method"> <h3 class="public ">getRedisPoolCoroutine()</h3> <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a> <pre class="signature" style="margin-right: 54px;">getRedisPoolCoroutine(\PG\MSF\Pools\CoroutineRedisProxy <span class="argument">$redisPoolCoroutine</span>, \PG\MSF\Base\Core <span class="argument">$coreBase</span>) : \PG\AOP\Wrapper|\PG\MSF\Pools\CoroutineRedisProxy</pre> <p><em>获取协程redis</em></p> <h4>Parameters</h4> <table class="table table-condensed table-hover"> <tr> <td><a href="../classes/PG.MSF.Pools.CoroutineRedisProxy.html">\PG\MSF\Pools\CoroutineRedisProxy</a></td> <td>$redisPoolCoroutine </td> <td><p>Redis协程辅助类实例</p></td> </tr> <tr> <td><a href="../classes/PG.MSF.Base.Core.html">\PG\MSF\Base\Core</a></td> <td>$coreBase </td> <td><p>Core实例(通常为Controller实例)</p></td> </tr> </table> <h4>Returns</h4> \PG\AOP\Wrapper|<a href="../classes/PG.MSF.Pools.CoroutineRedisProxy.html">\PG\MSF\Pools\CoroutineRedisProxy</a> — <p>AOP包装的CoroutineRedisProxy切片实例</p> </article> </div> <aside class="span4 detailsbar"> <h1><i class="icon-arrow-down"></i></h1> <span class="label label-info">static</span> <dl> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> <div class="row-fluid"> <div class="span8 content class"> <a id="method_getMysqlPoolCoroutine" name="method_getMysqlPoolCoroutine" class="anchor"></a> <article class="method"> <h3 class="public ">getMysqlPoolCoroutine()</h3> <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a> <pre class="signature" style="margin-right: 54px;">getMysqlPoolCoroutine(\PG\MSF\Pools\MysqlAsynPool <span class="argument">$mysqlPoolCoroutine</span>, \PG\MSF\Base\Core <span class="argument">$coreBase</span>) : \PG\AOP\Wrapper|\PG\MSF\Pools\MysqlAsynPool</pre> <p><em>获取协程mysql</em></p> <h4>Parameters</h4> <table class="table table-condensed table-hover"> <tr> <td><a href="../classes/PG.MSF.Pools.MysqlAsynPool.html">\PG\MSF\Pools\MysqlAsynPool</a></td> <td>$mysqlPoolCoroutine </td> <td><p>MySQL连接池实例</p></td> </tr> <tr> <td><a href="../classes/PG.MSF.Base.Core.html">\PG\MSF\Base\Core</a></td> <td>$coreBase </td> <td><p>Core实例(通常为Controller实例)</p></td> </tr> </table> <h4>Returns</h4> \PG\AOP\Wrapper|<a href="../classes/PG.MSF.Pools.MysqlAsynPool.html">\PG\MSF\Pools\MysqlAsynPool</a> — <p>AOP包装的MysqlAsynPool切片实例</p> </article> </div> <aside class="span4 detailsbar"> <h1><i class="icon-arrow-down"></i></h1> <span class="label label-info">static</span> <dl> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> <div class="row-fluid"> <div class="span8 content class"> <a id="method_getRedisProxy" name="method_getRedisProxy" class="anchor"></a> <article class="method"> <h3 class="public ">getRedisProxy()</h3> <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a> <pre class="signature" style="margin-right: 54px;">getRedisProxy(\PG\MSF\Proxy\IProxy|\PG\MSF\Proxy\RedisProxyCluster|\PG\MSF\Proxy\RedisProxyMasterSlave <span class="argument">$redisProxy</span>, \PG\MSF\Base\Core <span class="argument">$coreBase</span>) : \PG\AOP\Wrapper|\Redis</pre> <p><em>获取redis proxy</em></p> <h4>Parameters</h4> <table class="table table-condensed table-hover"> <tr> <td><a href="../classes/PG.MSF.Proxy.IProxy.html">\PG\MSF\Proxy\IProxy</a>|<a href="../classes/PG.MSF.Proxy.RedisProxyCluster.html">\PG\MSF\Proxy\RedisProxyCluster</a>|<a href="../classes/PG.MSF.Proxy.RedisProxyMasterSlave.html">\PG\MSF\Proxy\RedisProxyMasterSlave</a></td> <td>$redisProxy </td> <td><p>RedisProxy实例</p></td> </tr> <tr> <td><a href="../classes/PG.MSF.Base.Core.html">\PG\MSF\Base\Core</a></td> <td>$coreBase </td> <td><p>Core实例(通常为Controller实例)</p></td> </tr> </table> <h4>Returns</h4> \PG\AOP\Wrapper|\Redis — <p>AOP包装的RedisProxyCluster或者RedisProxyMasterSlave切片实例</p> </article> </div> <aside class="span4 detailsbar"> <h1><i class="icon-arrow-down"></i></h1> <span class="label label-info">static</span> <dl> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> <div class="row-fluid"> <div class="span8 content class"> <a id="method_getObjectPool" name="method_getObjectPool" class="anchor"></a> <article class="method"> <h3 class="public ">getObjectPool()</h3> <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a> <pre class="signature" style="margin-right: 54px;">getObjectPool(\PG\MSF\Base\Pool <span class="argument">$pool</span>, \PG\MSF\Base\Child <span class="argument">$coreBase</span>) : \PG\AOP\Wrapper|\PG\MSF\Base\Pool</pre> <p><em>获取对象池实例</em></p> <h4>Parameters</h4> <table class="table table-condensed table-hover"> <tr> <td><a href="../classes/PG.MSF.Base.Pool.html">\PG\MSF\Base\Pool</a></td> <td>$pool </td> <td><p>Pool实例</p></td> </tr> <tr> <td><a href="../classes/PG.MSF.Base.Child.html">\PG\MSF\Base\Child</a></td> <td>$coreBase </td> <td><p>Core实例(通常为Controller实例)</p></td> </tr> </table> <h4>Returns</h4> \PG\AOP\Wrapper|<a href="../classes/PG.MSF.Base.Pool.html">\PG\MSF\Base\Pool</a> — <p>AOP包装的Pool切片实例</p> </article> </div> <aside class="span4 detailsbar"> <h1><i class="icon-arrow-down"></i></h1> <span class="label label-info">static</span> <dl> </dl> <h2>Tags</h2> <table class="table table-condensed"> <tr><td colspan="2"><em>None found</em></td></tr> </table> </aside> </div> </div> </section> <div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="source-view-label">AOPFactory.php</h3> </div> <div class="modal-body"> <pre data-src="../files/Base/AOPFactory.php.txt" class="language-php line-numbers"></pre> </div> </div> <footer class="row-fluid"> <section class="span10 offset2"> <section class="row-fluid"> <section class="span10 offset1"> <section class="row-fluid footer-sections"> <section class="span4"> <h1><i class="icon-code"></i></h1> <div> <ul> <li><a href="../namespaces/PG.html">\PG</a></li> </ul> </div> </section> <section class="span4"> <h1><i class="icon-bar-chart"></i></h1> <div> <ul> <li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li> </ul> </div> </section> <section class="span4"> <h1><i class="icon-pushpin"></i></h1> <div> <ul> <li><a href="../reports/errors.html">Errors</a></li> <li><a href="../reports/markers.html">Markers</a></li> </ul> </div> </section> </section> </section> </section> <section class="row-fluid"> <section class="span10 offset1"> <hr /> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored on September 7th, 2017 at 11:20. </section> </section> </section> </footer> </div> </body> </html>