Reconnect

This commit is contained in:
2021-01-24 20:51:01 +03:00
parent f0b8ad1373
commit ebf82cf478
9 changed files with 294 additions and 48 deletions

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Nsq\Reconnect;
use Nsq\Exception\ConnectionFail;
interface ReconnectStrategy
{
/**
* @throws ConnectionFail
*/
public function connect(callable $callable): void;
}