Method |
Description |
|
addNode ( Shanty_Mongo_Connection $connection, integer $weight = 1 ) |
Add node to connection stack |
|
cacheConnectionSelection ( boolean $value = null ) |
Get or set the flag to determine if the first connection selection should be cached |
|
count ( ) |
Count all the connections |
|
current ( ) : Shanty_Mongo_Connection |
Get the current connection |
|
getCachedConnection ( ) : Shanty_Mongo_Connection |
Get the cached connection |
|
getOption ( string $option ) |
Get an option |
|
hasCachedConnection ( ) : boolean |
Determine if this connection stack has a cached connection |
|
key ( ) : integer |
Get teh current key |
|
next ( ) |
Move the pointer to the next connection |
|
offsetExists ( integer $offset ) |
Test if an offset exists |
|
offsetGet ( integer $offset ) |
Get an offset |
|
offsetSet ( Shanty_Mongo_Connection $offset, $connection ) |
Set an offset |
|
offsetUnset ( integer $offset ) |
Unset an offset |
|
rewind ( ) |
Rewind the pointer to the begining of the stack |
|
seek ( $position ) |
Seek to a particular connection |
|
selectNode ( ) : Shanty_Mongo_Connection |
Select a node from the connection stack. |
|
setOption ( string $option, mixed $value ) |
Set an option |
|
setOptions ( array $options ) |
Set Options |
|
valid ( ) |
Is the location of the current pointer valid |
|