PHP 8.4.0 RC4 available for testing

The MongoDB\Driver\TopologyDescription class

(mongodb >=1.13.0)

Вступ

The MongoDB\Driver\TopologyDescription class is a value object that represents a topology to which the driver is connected. Instances of this class are returned by MongoDB\Driver\Monitoring\TopologyChangedEvent methods.

Короткий огляд класу

final class MongoDB\Driver\TopologyDescription {
/* Константи */
const string TYPE_UNKNOWN = "Unknown";
const string TYPE_SINGLE = "Single";
const string TYPE_SHARDED = "Sharded";
const string TYPE_REPLICA_SET_NO_PRIMARY = "ReplicaSetNoPrimary";
const string TYPE_REPLICA_SET_WITH_PRIMARY = "ReplicaSetWithPrimary";
const string TYPE_LOAD_BALANCED = "LoadBalanced";
/* Методи */
final public getServers(): array
final public getType(): string
final public hasWritableServer(): bool
}

Зміст

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top