@@ -83,7 +83,7 @@ |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @param double|integer $wait_time |
|
86 | + * @param integer $wait_time |
|
87 | 87 | * |
88 | 88 | * @throws QueueException |
89 | 89 | */ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * Блокируем index mutex |
127 | 127 | * |
128 | - * @param double|integer $time |
|
128 | + * @param integer $time |
|
129 | 129 | * |
130 | 130 | * @return boolean |
131 | 131 | */ |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | } |
512 | 512 | |
513 | 513 | /** |
514 | - * @param double|integer $wait_time |
|
514 | + * @param integer $wait_time |
|
515 | 515 | * |
516 | 516 | * @return iMessage|object|null |
517 | 517 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * SmartQueue constructor. |
30 | 30 | * |
31 | - * @param GeneralQueueConstructionSettings|object $settings |
|
31 | + * @param GeneralQueueConstructionSettings $settings |
|
32 | 32 | * |
33 | 33 | * @throws QueueException |
34 | 34 | */ |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace NokitaKaze\Queue; |
4 | 4 | |
5 | - use NokitaKaze\RandomString\RandomString; |
|
6 | - |
|
7 | 5 | class Queue extends AbstractQueueTransport { |
8 | 6 | const ProducerThreadCount = 5; |
9 | 7 | const DefaultDBFileCount = 10; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * @param GeneralQueueConstructionSettings $settings |
66 | 66 | * |
67 | - * @return Queue[] |
|
67 | + * @return SmallFilesQueueConstructionSettingsForGeneral[] |
|
68 | 68 | */ |
69 | 69 | protected static function get_scenario2_queues($settings) { |
70 | 70 | /** |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | * @param integer $sort |
12 | 12 | * |
13 | 13 | * @throws QueueException |
14 | + * @return void |
|
14 | 15 | */ |
15 | 16 | function produce_message($data, $name = null, $sort = 5); |
16 | 17 | |
@@ -27,11 +28,12 @@ discard block |
||
27 | 28 | * @param iMessage[]|iMessage|object[]|object $stream |
28 | 29 | * |
29 | 30 | * @throws QueueException |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | function push($stream); |
32 | 34 | |
33 | 35 | /** |
34 | - * @param double|integer $wait_time |
|
36 | + * @param integer $wait_time |
|
35 | 37 | * |
36 | 38 | * @return iMessage|object|null |
37 | 39 | */ |
@@ -63,14 +65,16 @@ discard block |
||
63 | 65 | static function get_real_key_for_message($message); |
64 | 66 | |
65 | 67 | /** |
66 | - * @param double|integer $wait_time |
|
68 | + * @param integer $wait_time |
|
67 | 69 | * |
68 | 70 | * @throws QueueException |
71 | + * @return void |
|
69 | 72 | */ |
70 | 73 | function listen($wait_time = -1); |
71 | 74 | |
72 | 75 | /** |
73 | 76 | * @param callable $closure |
77 | + * @return void |
|
74 | 78 | */ |
75 | 79 | function set_callback_closure($closure); |
76 | 80 | |
@@ -88,6 +92,7 @@ discard block |
||
88 | 92 | |
89 | 93 | /** |
90 | 94 | * Очищаем список полученных ключей, чтобы была возможность получить их заново |
95 | + * @return void |
|
91 | 96 | */ |
92 | 97 | function clear_consumed_keys(); |
93 | 98 |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param double|integer $wait_time |
|
97 | + * @param integer $wait_time |
|
98 | 98 | * |
99 | 99 | * @return iMessage|object|null |
100 | 100 | * @throws QueueException |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @param double|integer $wait_time |
|
131 | + * @param integer $wait_time |
|
132 | 132 | * |
133 | 133 | * @return iMessage|object|null |
134 | 134 | * @throws QueueException |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | } |
448 | 448 | |
449 | 449 | /** |
450 | - * @param double|integer $wait_time |
|
450 | + * @param integer $wait_time |
|
451 | 451 | * |
452 | 452 | * @return iMessage|object|null |
453 | 453 | * |