\Threadator\CommunicationCommunication

Summary

Methods
Properties
Constants
__construct()
getDriver()
send()
touch()
receive()
create()
__clone()
No public properties found
DRIVER_TPL
No protected methods found
$driver
N/A
No private methods found
No private properties found
N/A

Constants

DRIVER_TPL

DRIVER_TPL

Properties

Methods

__construct()

__construct(string $driverName, string $identifier)

Parameters

string $driverName
string $identifier

send()

send(int $key, mixed $message) : bool

Parameters

int $key
mixed $message

Returns

bool

touch()

touch(int $key, mixed $message) : bool

Try to get message, but do not block

Parameters

int $key
mixed $message

Returns

bool

receive()

receive(int $key, mixed $message) : bool

Block until the first message arrives

Parameters

int $key
mixed $message

Returns

bool

create()

create(string $driverName, \Threadator\Runtime $runtime) : \Threadator\Communication\Communication

Parameters

string $driverName
\Threadator\Runtime $runtime

Returns

\Threadator\Communication\Communication

__clone()

__clone() : void