Property | Type | Description | |
---|---|---|---|
$commandHandlers | array | Command handlers | |
$connectionManager | Disque\Connection\ManagerInterface | Connection manager |
Method | Description | |
---|---|---|
__call ( $command, array $arguments ) | ||
__construct ( array $servers = [] ) | Create a new Client | |
connect ( ) : Disque\Connection\Node\Node | Connect to Disque | |
getConnectionManager ( ) : Disque\Connection\ManagerInterface | Get the connection manager | |
isConnected ( ) : boolean | Tells if connection is established | |
queue ( string $name ) : |
Get a queue | |
registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void | Register a command handler | |
setConnectionManager ( Disque\Connection\ManagerInterface $manager ) | Set a connection manager |
public __construct ( array $servers = [] ) | ||
$servers | array |
public connect ( ) : Disque\Connection\Node\Node | ||
return | Disque\Connection\Node\Node | Connected node information |
public getConnectionManager ( ) : Disque\Connection\ManagerInterface | ||
return | Disque\Connection\ManagerInterface | Connection manager |
public isConnected ( ) : boolean | ||
return | boolean | Success |
public registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void | ||
$commandHandler | Disque\Command\CommandInterface | Command |
return | void |
public setConnectionManager ( Disque\Connection\ManagerInterface $manager ) | ||
$manager | Disque\Connection\ManagerInterface |
protected array $commandHandlers | ||
return | array |