<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.zookeeper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'zookeeper.isrecoverable.php',
    1 => 'Zookeeper::isRecoverable',
    2 => 'Checks if the current zookeeper connection state can be recovered',
  ),
  'up' => 
  array (
    0 => 'class.zookeeper.php',
    1 => 'Zookeeper',
  ),
  'prev' => 
  array (
    0 => 'zookeeper.getstate.php',
    1 => 'Zookeeper::getState',
  ),
  'next' => 
  array (
    0 => 'zookeeper.set.php',
    1 => 'Zookeeper::set',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/zookeeper/zookeeper/isrecoverable.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="zookeeper.isrecoverable" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Zookeeper::isRecoverable</h1>
  <p class="verinfo">(PECL zookeeper &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Zookeeper::isRecoverable</span> &mdash; <span class="dc-title">Checks if the current zookeeper connection state can be recovered</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-zookeeper.isrecoverable-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>Zookeeper::isRecoverable</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   The application must close the handle and try to reconnect.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-zookeeper.isrecoverable-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-zookeeper.isrecoverable-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns true/false on success, and false on failure.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-zookeeper.isrecoverable-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   This method emits PHP error/warning when operation fails.
  </p>
  <div class="caution"><strong class="caution">警告</strong>
    <p class="para">
      Since version 0.3.0, this method emits <span class="classname"><a href="class.zookeeperexception.php" class="classname">ZookeeperException</a></span> and it&#039;s derivatives.
    </p>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-zookeeper.isrecoverable-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="zookeeper.construct.php" class="methodname" rel="rdfs-seeAlso">Zookeeper::__construct()</a> - Create a handle to used communicate with zookeeper</span></li>
   <li><span class="methodname"><a href="zookeeper.connect.php" class="methodname" rel="rdfs-seeAlso">Zookeeper::connect()</a> - Create a handle to used communicate with zookeeper</span></li>
   <li><span class="methodname"><a href="zookeeper.getclientid.php" class="methodname" rel="rdfs-seeAlso">Zookeeper::getClientId()</a> - Return the client session id, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE)</span></li>
   <li><a href="class.zookeeper.php#zookeeper.constants.states" class="link">ZooKeeper States</a></li>
   <li><span class="classname"><a href="class.zookeeperexception.php" class="classname">ZookeeperException</a></span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>