ChmpxSlave Class ChmpxSlave::__destruct

ChmpxSlave::__construct

Creates a ChmpxSlave instance

Description

public function __construct($handle, bool $no_giveup_rejoin = false) {}

Creates a ChmpxSlave instance.

Parameters

Examples

php -r '$handle = chmpxpx_create("./tests/slave.yaml", false, true); $slvobj = new ChmpxSlave($handle); chmpxpx_destroy($handle);'

The above example will output:

object(ChmpxSlave)#1 (2) {
  ["chmpx_handle"]=>
  resource(4) of type (chmpx_handle)
  ["msgid_handle"]=>
  resource(5) of type (msgid_handle)
}

See Also

ChmpxSlave Class ChmpxSlave::__destruct