The MongoDB\Driver\Monitoring\ServerChangedEvent class
(mongodb >=1.13.0)
简介
The MongoDB\Driver\Monitoring\ServerChangedEvent class encapsulates information about a changed server description.
类摘要
final
class MongoDB\Driver\Monitoring\ServerChangedEvent
{
/* 方法 */
final public getHost(): string
final public getNewDescription(): MongoDB\Driver\ServerDescription
final public getPort(): int
final public getPreviousDescription(): MongoDB\Driver\ServerDescription
final public getTopologyId(): MongoDB\BSON\ObjectId
}
目录MongoDB\Driver\Monitoring\ServerChangedEvent::getHost — Returns the hostname of the serverMongoDB\Driver\Monitoring\ServerChangedEvent::getNewDescription — Returns the new description for the serverMongoDB\Driver\Monitoring\ServerChangedEvent::getPort — Returns the port on which this server is listeningMongoDB\Driver\Monitoring\ServerChangedEvent::getPreviousDescription — Returns the previous description for the serverMongoDB\Driver\Monitoring\ServerChangedEvent::getTopologyId — Returns the topology ID associated with this server
add a note
User Contributed Notes
There are no user contributed notes for this page.
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/class.mongodb-driver-monitoring-serverchangedevent.php