PHP Class PHPDaemon\Examples\MongoNode

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Core\AppInstance
Datei anzeigen Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$LockClient MemcacheClient
$cache MongoClient
$cursor LockClient
$db
$timer Tailable cursor

Protected Properties

Property Type Description
$inited

Public Methods

Method Description
cacheObject ( $o ) : void Method called when object received.
deleteObject ( $o ) : void Method called when object deleted.
init ( ) : void Constructor.
initSlave ( MongoTimestamp $point ) : void Initializes slave session.
onReady ( ) : void Called when the worker is ready to go.
touchCursor ( )

Protected Methods

Method Description
getConfigDefaults ( ) : array | false Setting default config options Overriden from AppInstance::getConfigDefaults

Method Details

cacheObject() public method

Method called when object received.
public cacheObject ( $o ) : void
return void

deleteObject() public method

Method called when object deleted.
public deleteObject ( $o ) : void
return void

getConfigDefaults() protected method

Setting default config options Overriden from AppInstance::getConfigDefaults
protected getConfigDefaults ( ) : array | false
return array | false

init() public method

Constructor.
public init ( ) : void
return void

initSlave() public method

Initializes slave session.
public initSlave ( MongoTimestamp $point ) : void
$point MongoTimestamp
return void

onReady() public method

Called when the worker is ready to go.
public onReady ( ) : void
return void

touchCursor() public method

public touchCursor ( )

Property Details

$LockClient public_oe property

MemcacheClient
public $LockClient

$cache public_oe property

MongoClient
public $cache

$cursor public_oe property

LockClient
public $cursor

$db public_oe property

public $db

$inited protected_oe property

protected $inited

$timer public_oe property

Tailable cursor
public $timer