MCPcopy
hub / github.com/redis/redis-py / AfterPooledConnectionsInstantiationEvent

Class AfterPooledConnectionsInstantiationEvent

redis/event.py:223–248  ·  view source on GitHub ↗

Event that will be fired after pooled connection instances was created.

Source from the content-addressed store, hash-verified

221
222
223class AfterPooledConnectionsInstantiationEvent:
224 """
225 Event that will be fired after pooled connection instances was created.
226 """
227
228 def __init__(
229 self,
230 connection_pools: List,
231 client_type: ClientType,
232 credential_provider: Optional[CredentialProvider] = None,
233 ):
234 self._connection_pools = connection_pools
235 self._client_type = client_type
236 self._credential_provider = credential_provider
237
238 @property
239 def connection_pools(self):
240 return self._connection_pools
241
242 @property
243 def client_type(self) -> ClientType:
244 return self._client_type
245
246 @property
247 def credential_provider(self) -> Union[CredentialProvider, None]:
248 return self._credential_provider
249
250
251class AfterSingleConnectionInstantiationEvent:

Callers 3

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected