浏览代码

Update phpdoc.

Daniele Alessandri 9 年之前
父节点
当前提交
bc212ad2b0
共有 1 个文件被更改,包括 11 次插入3 次删除
  1. 11 3
      src/Connection/Aggregate/SentinelReplication.php

+ 11 - 3
src/Connection/Aggregate/SentinelReplication.php

@@ -56,7 +56,11 @@ class SentinelReplication extends MasterSlaveReplication
     protected $sentinelTimeout = 0.100;
 
     /**
-     * Max number of automatic retries of commands upon server failure. 0 = never retry, -1 = unlimited.
+     * Max number of automatic retries of commands upon server failure.
+     *
+     * -1 = unlimited retry attempts
+     *  0 = no retry attempts (fails immediatly)
+     *  n = fail only after n retry attempts
      */
     protected $retryLimit = -1;
 
@@ -98,9 +102,13 @@ class SentinelReplication extends MasterSlaveReplication
     }
 
     /**
-     * Set maximum number of automatic retries of commands upon server failure. 0 = never retry, -1 = unlimited.
+     * Set maximum number of automatic retries of commands upon server failure.
+     *
+     * -1 = unlimited retry attempts
+     *  0 = no retry attempts (fails immediatly)
+     *  n = fail only after n retry attempts
      *
-     * @param integer $retry Retry value.
+     * @param integer $retry Number of retry attempts.
      */
     public function setRetryLimit($retry)
     {