프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$commandHandlers | array | Command handlers | |
$connectionManager | Disque\Connection\ManagerInterface | Connection manager |
메소드 | 설명 | |
---|---|---|
__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 connect ( ) : Disque\Connection\Node\Node | ||
리턴 | Disque\Connection\Node\Node | Connected node information |
public getConnectionManager ( ) : Disque\Connection\ManagerInterface | ||
리턴 | Disque\Connection\ManagerInterface | Connection manager |
public isConnected ( ) : boolean | ||
리턴 | boolean | Success |
public registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void | ||
$commandHandler | Disque\Command\CommandInterface | Command |
리턴 | void |
public setConnectionManager ( Disque\Connection\ManagerInterface $manager ) | ||
$manager | Disque\Connection\ManagerInterface |