@@ -33,7 +33,6 @@ def __init__(self, driver: common_utils.SupportedDriverType, size: int = 100):
3333 :param size: Max size of Session Pool.
3434 """
3535
36- logger .warning ("QuerySessionPool is an experimental API, which could be changed." )
3736 self ._driver = driver
3837 self ._queue = queue .Queue ()
3938 self ._current_size = 0
@@ -48,9 +47,7 @@ def _create_new_session(self, timeout: Optional[float]):
4847 return session
4948
5049 def acquire (self , timeout : Optional [float ] = None ) -> QuerySession :
51- """WARNING: This API is experimental and could be changed.
52-
53- Acquire a session from Session Pool.
50+ """Acquire a session from Session Pool.
5451
5552 :param timeout: A timeout to wait in seconds.
5653
@@ -102,28 +99,21 @@ def acquire(self, timeout: Optional[float] = None) -> QuerySession:
10299 self ._lock .release ()
103100
104101 def release (self , session : QuerySession ) -> None :
105- """WARNING: This API is experimental and could be changed.
106-
107- Release a session back to Session Pool.
108- """
102+ """Release a session back to Session Pool."""
109103
110104 self ._queue .put_nowait (session )
111105 logger .debug ("Session returned to queue: %s" , session ._state .session_id )
112106
113107 def checkout (self , timeout : Optional [float ] = None ) -> "SimpleQuerySessionCheckout" :
114- """WARNING: This API is experimental and could be changed.
115-
116- Return a Session context manager, that acquires session on enter and releases session on exit.
108+ """Return a Session context manager, that acquires session on enter and releases session on exit.
117109
118110 :param timeout: A timeout to wait in seconds.
119111 """
120112
121113 return SimpleQuerySessionCheckout (self , timeout )
122114
123115 def retry_operation_sync (self , callee : Callable , retry_settings : Optional [RetrySettings ] = None , * args , ** kwargs ):
124- """WARNING: This API is experimental and could be changed.
125-
126- Special interface to execute a bunch of commands with session in a safe, retriable way.
116+ """Special interface to execute a bunch of commands with session in a safe, retriable way.
127117
128118 :param callee: A function, that works with session.
129119 :param retry_settings: RetrySettings object.
@@ -147,9 +137,7 @@ def execute_with_retries(
147137 * args ,
148138 ** kwargs ,
149139 ) -> List [convert .ResultSet ]:
150- """WARNING: This API is experimental and could be changed.
151-
152- Special interface to execute a one-shot queries in a safe, retriable way.
140+ """Special interface to execute a one-shot queries in a safe, retriable way.
153141 Note: this method loads all data from stream before return, do not use this
154142 method with huge read queries.
155143
0 commit comments