Method |
Description |
|
__construct ( Disque\Connection\Credentials $credentials, Disque\Connection\ConnectionInterface $connection ) |
|
|
addJobCount ( integer $jobsAdded ) |
Increase the node job counts by the given number |
|
connect ( ) : array |
Connect to the node and return the HELLO response |
|
execute ( Disque\Command\CommandInterface $command ) : mixed |
Execute a command on this Disque node |
|
getConnection ( ) : Disque\Connection\ConnectionInterface |
Get the node connection |
|
getCredentials ( ) : Disque\Connection\Credentials |
Get the node credentials |
|
getHello ( ) : array |
Get the node's last HELLO response |
|
getId ( ) : string |
Get the node ID |
|
getJobCount ( ) : integer |
Get the node job count since the last reset (usually a node switch) |
|
getPrefix ( ) : string |
Get the node prefix - the first 8 bytes from the ID |
|
getPriority ( ) : integer |
Get the node priority as set by the cluster. 1-100, lower is better. |
|
getTotalJobCount ( ) : integer |
Get the total job count since the node instantiation |
|
isConnected ( ) : boolean |
Check if this object holds a working connection to Disque node |
|
resetJobCount ( ) |
Reset the node job count |
|
sayHello ( ) : array |
Say a new HELLO to the node and parse the response |
|
setPriority ( integer $priority ) |
|
|