Home | Trees | Indices | Help |
|
---|
|
object --+ | util.BasePool --+ | MemcacheConnectionPool
|
|||
|
|||
PooledInterface |
|
||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
bool |
_FORK_PROTECT = True Clear the pool, when the PID changes? |
||
Inherited from |
|
|||
tuple |
_dead = False dead state and recovery information during dead time. |
||
threading.RLock |
_deadlock Lock for dead state access |
||
int |
_stamp = None Timestamp when the next event should happen. |
||
int |
_state = None The current state of the pool during dead time (STATE_GRACE or STATE_RETRY) |
||
tuple |
backup =
The weighted backup pools used in retry state |
||
callable |
del_conn Connection deleter |
||
callable |
get_conn Connection getter |
||
tuple |
spec Connection spec |
||
int |
timediff = 0 Time difference between client and server in seconds. |
||
float |
timeout Communication timeout |
||
int |
weight Relative pool weight |
||
Inherited from |
|
|||
dead (bool) The current dead state |
|||
state (tuple) The pool's state. |
|||
Inherited from |
|
|
Create a pooled object This method must be implemented by subclasses.
See Also: BasePool._create |
|
|
Mark this pool alive The method unconditionally removes the backup pool list and the dead status. |
|
_deaddead state and recovery information during dead time. If the pool is alive the value is None. If it's dead it's a tuple containing the retry time and the pool list. ((int, tuple))
|
_stampTimestamp when the next event should happen. That is either the switch from grace state to retry state or the next retry.
|
timediffTime difference between client and server in seconds. The value is determined after each real connect (c_time - s_time)
|
|
dead(bool) The current dead state
|
state(tuple) The pool's state. The first item is the dead state (STATE_GRACE or STATE_RETRY) or None if the pool is not dead. The second item is only useful in retry state. Then it's a boolean answering the question whether we hit a retry point or not.
|
Home | Trees | Indices | Help |
|
---|