PHP 클래스 Disque\Client

파일 보기 프로젝트 열기: mariano/disque-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 ) : Queue Get a queue
registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void Register a command handler
setConnectionManager ( Disque\Connection\ManagerInterface $manager ) Set a connection manager

메소드 상세

__call() 공개 메소드

public __call ( $command, array $arguments )
$arguments array

__construct() 공개 메소드

Create a new Client
public __construct ( array $servers = [] )
$servers array

connect() 공개 메소드

Connect to Disque
public connect ( ) : Disque\Connection\Node\Node
리턴 Disque\Connection\Node\Node Connected node information

getConnectionManager() 공개 메소드

Get the connection manager
public getConnectionManager ( ) : Disque\Connection\ManagerInterface
리턴 Disque\Connection\ManagerInterface Connection manager

isConnected() 공개 메소드

Tells if connection is established
public isConnected ( ) : boolean
리턴 boolean Success

queue() 공개 메소드

Get a queue
public queue ( string $name ) : Queue
$name string Queue name
리턴 Disque\Queue\Queue Queue

registerCommand() 공개 메소드

Register a command handler
public registerCommand ( Disque\Command\CommandInterface $commandHandler ) : void
$commandHandler Disque\Command\CommandInterface Command
리턴 void

setConnectionManager() 공개 메소드

Set a connection manager
public setConnectionManager ( Disque\Connection\ManagerInterface $manager )
$manager Disque\Connection\ManagerInterface

프로퍼티 상세

$commandHandlers 보호되어 있는 프로퍼티

Command handlers
protected array $commandHandlers
리턴 array

$connectionManager 보호되어 있는 프로퍼티

Connection manager
protected ManagerInterface,Disque\Connection $connectionManager
리턴 Disque\Connection\ManagerInterface