TopologyDescription
class TopologyDescription (View source)
Constants
TYPE_UNKNOWN |
|
TYPE_SINGLE |
|
TYPE_SHARDED |
|
TYPE_REPLICA_SET_NO_PRIMARY |
|
TYPE_REPLICA_SET_WITH_PRIMARY |
|
TYPE_LOAD_BALANCED |
|
Methods
array
getServers()
Returns the servers in the topology
string
getType()
Returns a string denoting the type of this topology
bool
hasReadableServer(ReadPreference|null $readPreference = null)
Returns whether the topology has a readable server
bool
hasWritableServer()
Returns whether the topology has a writable server
void
__wakeup()
No description
Details
final array
getServers()
Returns the servers in the topology
final string
getType()
Returns a string denoting the type of this topology
final bool
hasReadableServer(ReadPreference|null $readPreference = null)
Returns whether the topology has a readable server
final bool
hasWritableServer()
Returns whether the topology has a writable server
final void
__wakeup()
No description