Class TSocketPool
Sockets implementation of the TTransport interface that allows connection to a pool of servers.
- TTransport
- TSocket
- TSocketPool
Package: thrift\transport
Author: Mark Slee mcslee@facebook.com
Located at Horde/Thrift/thrift_root/transport/TSocketPool.php
Author: Mark Slee mcslee@facebook.com
Located at Horde/Thrift/thrift_root/transport/TSocketPool.php
public
|
#
__construct( array $hosts = array('localhost'), mixed $ports = array(9090), boolean $persist = FALSE, mixed $debugHandler = null )
Socket pool constructor |
public
|
|
public
|
#
setNumRetries( integer $numRetries )
Sets how many time to keep retrying a host in the connect function. |
public
|
#
setRetryInterval( integer $retryInterval )
Sets how long to wait until retrying a host if it was marked down |
public
|
#
setMaxConsecutiveFailures( integer $maxConsecutiveFailures )
Sets how many time to keep retrying a host before marking it as down. |
public
|
|
public
|
|
public
|
close(),
flush(),
getHost(),
getPort(),
isOpen(),
read(),
readAll(),
setDebug(),
setRecvTimeout(),
setSendTimeout(),
write()
|